Skip to content
Sheetwrite

Sheetwrite / Documentation

parseCsv@sheetwrite/core

Parse the fixed comma dialect: quoted delimiters/newlines, doubled quotes, bare CR, LF, or CRLF records, Unicode, trailing empty fields, and one optional leading UTF-8 BOM.

Parse the fixed comma dialect: quoted delimiters/newlines, doubled quotes, bare CR, LF, or CRLF records, Unicode, trailing empty fields, and one optional leading UTF-8 BOM. The synchronous API consumes an existing in-memory string and returns an in-memory grid; it does not claim streaming. Scanning enforces resource ceilings before materializing the next oversized field or record.

Declaration

function parseCsv(
text: string,
options?: DelimitedTextOptions,
): string[][]