Skip to main content
Home
This release is 14 versions behind 1.0.6 — the latest version of @std/csv. Jump to latest

@std/csv@0.221.0
Built and signed on GitHub Actions

Reading and writing of comma-separated values (CSV) files

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
2 years ago (0.221.0)

default

Reads and writes comma-separated values (CSV) files.

T
Column

The most essential aspect of a column is accessing the property holding the data for that column on each object in the data array. If that member is at the top level, Column can simply be a property accessor, which is either a string (if it's a plain object) or a number (if it's an array).

T
ColumnDetails

Column information.

c
CsvParseStream

Read data from a CSV-encoded stream or file. Provides an auto/custom mapper for columns.

I
CsvParseStreamOptions

Options for CsvParseStream.

c
CsvStringifyStream

Convert each chunk to a CSV record.

I
CsvStringifyStreamOptions

Options for CsvStringifyStream.

T
DataItem

An object (plain or array)

f
parse

Csv parse helper to manipulate data. Provides an auto/custom mapper for columns.

c
ParseError

A ParseError is returned for parsing errors. Line numbers are 1-indexed and columns are 0-indexed.

I
ParseOptions

Options for parse.

T
ParseResult

Options for parse and CsvParseStream.

T
PropertyAccessor

Array index or record key corresponding to a value for a data object.

T
RecordWithColumn

Record type with column type.

T
RowType

Row return type.

f
stringify

Write data using CSV encoding.

c
StringifyError

Error thrown in stringify.

c
CsvParseStream

Read data from a CSV-encoded stream or file. Provides an auto/custom mapper for columns.

I
CsvParseStreamOptions

Options for CsvParseStream.

T
RowType

Row return type.

c
CsvStringifyStream

Convert each chunk to a CSV record.

I
CsvStringifyStreamOptions

Options for CsvStringifyStream.

f
parse

Csv parse helper to manipulate data. Provides an auto/custom mapper for columns.

c
ParseError

A ParseError is returned for parsing errors. Line numbers are 1-indexed and columns are 0-indexed.

I
ParseOptions

Options for parse.

T
ParseResult

Options for parse and CsvParseStream.

T
RecordWithColumn

Record type with column type.

T
Column

The most essential aspect of a column is accessing the property holding the data for that column on each object in the data array. If that member is at the top level, Column can simply be a property accessor, which is either a string (if it's a plain object) or a number (if it's an array).

T
ColumnDetails

Column information.

T
DataItem

An object (plain or array)

T
PropertyAccessor

Array index or record key corresponding to a value for a data object.

f
stringify

Write data using CSV encoding.

c
StringifyError

Error thrown in stringify.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.