cosovo
    Preparing search index...

    Interface ParseOptions

    Options for parsing CSV data

    interface ParseOptions {
        comments?: string | boolean;
        delimiter?: string;
        escapeChar?: string;
        initialState?: State | "detect";
        newline?: Newline;
        quoteChar?: string;
        stripBOM?: boolean;
    }
    Index

    Properties

    comments?: string | boolean

    The comment character or boolean to indicate comments. Defaults to false (don't strip comments).

    delimiter?: string

    The delimiter used in the CSV data. If not provided, the parser will attempt to guess it.

    escapeChar?: string

    The escape character used in the CSV data. Defaults to the quote character.

    initialState?: State | "detect"

    The initial state for the parser. Use 'detect' to automatically detect the initial state. Defaults to 'default'.

    newline?: Newline

    The newline character(s) used in the CSV data. Defaults to '\n'.

    quoteChar?: string

    The quote character used in the CSV data. Defaults to '"'.

    stripBOM?: boolean

    Whether to strip the BOM character at the start of the text. Defaults to true.