modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface SheetToCsvOptions

    Options for the sheetToCsv function.

    interface SheetToCsvOptions {
        escapeFormulas?: boolean;
        forceQuote?: boolean;
        separator?: string;
        sheetRows?: number;
    }
    Index
    escapeFormulas?: boolean

    Defuse CSV injection (see OWASP "CSV Injection"): a cell whose value starts with =, +, -, @, TAB or CR gets a ' prefix and is force-quoted, whatever its declared type; the only exemption is a number cell holding a finite decimal literal such as -5, +2 or -1.5e3 (default: false).

    forceQuote?: boolean

    Force-quote all fields (default: false).

    separator?: string

    Field separator (default: ",").

    sheetRows?: number

    Maximum number of output lines, counted from the first populated row; the header row and empty gap rows count.