Interface: DownloadCsvOptions<T>
Defined in: platform/browser.ts:10
Options for downloadCsv: every encoder option plus file metadata.
Extends
CsvOptions<T>
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends object | CsvRecord |
Properties
arraySeparator?
optional arraySeparator?: string;Defined in: types.ts:95
Separator used to join an array within a single cell. Default ", ".
Inherited from
bom?
optional bom?: boolean;Defined in: types.ts:97
Prepend a UTF-8 byte-order mark. Default false.
Inherited from
booleans?
optional booleans?: BooleanStyle;Defined in: types.ts:93
Rendering of boolean values. Default { true: "true", false: "false" }.
Inherited from
columns?
optional columns?: CsvColumns<T>;Defined in: types.ts:118
Columns to emit. When omitted, the columns are the stable union of every record's keys, in first-seen order.
Inherited from
filename?
optional filename?: string;Defined in: platform/browser.ts:14
Suggested file name for the download. Default "data.csv".
finalNewline?
optional finalNewline?: boolean;Defined in: types.ts:79
Append a trailing newline after the last record. Default false.
Inherited from
format?
optional format?: CsvFormatter;Defined in: types.ts:83
Transform each raw value into a cell before it is encoded.
Inherited from
formulaPrefix?
optional formulaPrefix?: string;Defined in: types.ts:107
Prefix applied by sanitizeFormulas. Default ' (a single quote).
Inherited from
infinityText?
optional infinityText?: string;Defined in: types.ts:91
Text for Infinity. -Infinity is rendered as - followed by this. Default Infinity.
Inherited from
mimeType?
optional mimeType?: string;Defined in: platform/browser.ts:16
Blob MIME type. Default "text/csv;charset=utf-8".
nanText?
optional nanText?: string;Defined in: types.ts:89
Text for NaN values. Default "".
Inherited from
newline?
optional newline?: string;Defined in: types.ts:77
Line terminator between records. Default \r\n (RFC 4180).
Inherited from
nullText?
optional nullText?: string;Defined in: types.ts:85
Text for null values. Default "".
Inherited from
quote?
optional quote?: string;Defined in: types.ts:75
Quote character used when a field must be quoted. Default ".
Inherited from
quoting?
optional quoting?: QuotingMode;Defined in: types.ts:81
Quoting strategy. Default minimal.
Inherited from
sanitizeFormulas?
optional sanitizeFormulas?: boolean;Defined in: types.ts:105
Guard against CSV formula injection. When a string or array cell would begin with a character a spreadsheet may treat as a formula (=, +, -, @, a tab, or a carriage return), prefix it with formulaPrefix so the value is shown literally. Numbers, booleans, and dates are never altered. Default false.
Inherited from
separator?
optional separator?: string;Defined in: types.ts:73
Field separator. Default ,.
Inherited from
showHeaders?
optional showHeaders?: boolean;Defined in: types.ts:71
Whether to emit a header row. Default true.
Inherited from
undefinedText?
optional undefinedText?: string;Defined in: types.ts:87
Text for undefined values. Default "".