OptionaldelimiterOptionalincludeInclude headers row (default: true)
OptionalrenameRename column headers { oldKey: newKey }
OptionaltemplateTemplate for guaranteed column order
OptionalmaxMaximum number of records to process (optional, no limit by default)
OptionalpreventPrevent CSV injection attacks by escaping formulas (default: true)
Optionalrfc4180Ensure RFC 4180 compliance (default: true).
On the way out this picks CRLF line endings. On the way in it selects the tokenizer dialect: the default treats a backslash as ordinary data, the way RFC 4180, Excel, Papa Parse and this library's own browser build do. Set it to false for files written with the MySQL/Postgres convention, where a backslash escapes the character after it.
OptionalnormalizeNormalize excessive quotes in JSON string values before CSV export (default: true)
OptionalschemaJSON schema for data validation and formatting
OptionalflattenWhether to flatten nested objects into dot notation keys
OptionalflattenSeparator for flattened keys (e.g., 'user.name' with '.')
OptionalflattenMaximum depth for flattening nested objects
OptionalarrayHow to handle arrays ('stringify', 'join', 'expand')
OptionalmemoryWarn when record count exceeds this threshold (default: 1000000)
OptionalmemorySafety limit for in-memory conversion (default: 5000000). Set to Infinity to disable.
CSV delimiter (default: ';')