Skip to content

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 "".

Parameter Type
text string
options? ParseCsvOptions

object

Name Type Defined in
headers string[] src/csv.ts:100
records Record<string, string>[] src/csv.ts:100