Function parseCsvRow

  • The parseCsvRow function parses a single row of CSV data into an array of cell values. It takes the row to be parsed as a string, and optional separator and quote characters as parameters. If no separator character is provided, the default value of ',' (a comma) is used. If no quote character is provided, the default value of '"' (a double quote) is used. The function handles quoted cell values and escaped quote characters within cell values.

    Fixme

    Add support to parse quoted line breaks

    Parameters

    • value: any
    • separator: string = DEFAULT_CSV_SEPARATOR
    • quote: string = DEFAULT_CSV_QUOTE

    Returns CsvRow

Generated using TypeDoc