parseCsvRecords
function parseCsvRecords(text, options?): object;Defined in: src/csv.ts:97
Parse CSV with a header row into records keyed by header. Blank lines are
skipped; missing trailing fields read as "".
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
text |
string |
options? |
ParseCsvOptions |
Returns
Section titled “Returns”object
| Name | Type | Defined in |
|---|---|---|
headers |
string[] |
src/csv.ts:100 |
records |
Record<string, string>[] |
src/csv.ts:100 |