Skip to content

CsvOptions

Since v0.1.1

CSV export options

PropertyTypeDescription
delimiter?stringField delimiter (default: ’,‘)
newline?stringLine separator (default: ‘\n’)
quoteStrings?booleanWhether to quote strings containing special characters (default: true)
bom?booleanAdd UTF-8 BOM for Excel compatibility (default: false)
escapeFormulas?booleanNeutralize spreadsheet formula injection (CWE-1236) by prefixing string values that start with =, +, -, @, TAB or CR with a single quote, so Excel / LibreOffice / Sheets render them as text instead of evaluating them (default: true). v3.5.0+

Neutralize spreadsheet formula injection (CWE-1236) by prefixing string values that start with =, +, -, @, TAB or CR with a single quote, so Excel / LibreOffice / Sheets render them as text instead of evaluating them (default: true).

Set to false only when the exported data is fully trusted AND the file is re-imported by a parser that must see the original characters.