web-csv-toolbox
    Preparing search index...

    Interface CommonOptions<Delimiter, Quotation>

    CSV Common Options.

    interface CommonOptions<Delimiter extends string, Quotation extends string> {
        delimiter?: Delimiter;
        maxBufferSize?: number;
        quotation?: Quotation;
    }

    Type Parameters

    • Delimiter extends string
    • Quotation extends string

    Hierarchy (View Summary)

    Index

    Properties

    delimiter?: Delimiter

    CSV field delimiter. If you want to parse TSV, specify '\t'.

    Detail restrictions are as follows:

    • Must not be empty
    • Must be a single character
      • Multi-byte characters are not supported
    • Must not include CR or LF
    • Must not be the same as the quotation
    ','
    
    maxBufferSize?: number

    Maximum internal buffer size in characters.

    This option limits the size of the internal buffer used during lexing to prevent memory exhaustion attacks. The buffer size is measured in UTF-16 code units (JavaScript string length). When the buffer exceeds this limit, a RangeError will be thrown.

    Set to Infinity to disable the limit (not recommended for untrusted input).

    10 * 1024 * 1024 (approximately 10MB for ASCII, but may vary for non-ASCII)
    
    quotation?: Quotation

    CSV field quotation.

    '"'