foundation-forms.parsecsv
Home > @genesislcap/foundation-forms > parseCsv
parseCsv() function
Parses a CSV string into headers and rows using PapaParse. Handles quoted fields, escaped quotes, empty values, and mixed line endings.
Signature:
export declare function parseCsv(content: string): CsvParseResult;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
content |
string |
The CSV content as a string |
Returns:
The parsed result with headers, rows, and any errors