import * as mod from "https://firstname.lastname@example.org/csv/mod.ts";
Reads and writes comma-separated values (CSV) files.
There are many kinds of CSV files; this module supports the format described in RFC 4180.
A csv file contains zero or more records of one or more fields per record. Each record is separated by the newline character. The final record may optionally be followed by a newline character.
White space is considered part of a field.
Carriage returns before newline characters are silently removed.
Blank lines are ignored. A line with only whitespace characters (excluding the ending newline character) is not considered a blank line.
Fields which start and stop with the quote character " are called quoted-fields. The beginning and ending quote are not part of the field.
results in the fields
[`normal string`, `quoted-field`]
Within a quoted-field a quote character followed by a second quote character is considered a single quote.
"the ""word"" is true","a ""quoted-field"""
the "word" is true,
Newlines and commas may be included in a quoted-field
"Multi-line field","comma is ,"
[`Multi-line field`, `comma is ,`]
Read data from a CSV-encoded stream or file. Provides an auto/custom mapper for columns.
Convert each chunk to a CSV record.
A ParseError is returned for parsing errors. Line numbers are 1-indexed and columns are 0-indexed.
Csv parse helper to manipulate data. Provides an auto/custom mapper for columns.
Write data using CSV encoding.
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,
An object (plain or array)