Works with
•JSR Score70%•It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun




Published2 years ago (0.215.0)
Classes
c
CsvParseStream<T extends CsvParseStreamOptions | undefined = undefined>(options?: T)
Read data from a CSV-encoded stream or file. Provides an auto/custom mapper for columns.
- readable(): ReadableStream<RowType<T>>
The instance's
ReadableStream. - writable(): WritableStream<string>
The instance's
WritableStream.
Interfaces
I
Options for CsvParseStream.
- columns: readonly string[]
List of names used for header definition.
- skipFirstRow: boolean
If you provide
skipFirstRow: trueandcolumns, the first line will be skipped. If you provideskipFirstRow: truebut notcolumns, the first line will be skipped and used as header definitions.
Type Aliases
T
RowType<T> = T extends undefined ? string[] : ParseResult<CsvParseStreamOptions, T>[number]
Row return type.