Skip to content

stringifyCsv

stringifyCsv(rows, options?): string

Defined in: packages/format-csv/src/stringify-csv.ts:11

Serializes rows of cells as RFC 4180 CSV. Quotes a field only when required.

A utility over formatCsvRow: rows are joined rather than terminated, so the result carries no trailing newline. Use CsvPrintStream where each record should be terminated as it is emitted.

readonly readonly CsvCell[][]

CsvOptions

string