feat(std/encoding/csv): Add stringify functionality (#8408)

This commit is contained in:
Jesse Jackson 2020-11-25 08:50:00 -06:00 committed by GitHub
parent d40b0711a7
commit ed11eb6687
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 737 additions and 6 deletions

View file

@ -9,6 +9,15 @@ import { TextProtoReader } from "../textproto/mod.ts";
import { StringReader } from "../io/readers.ts";
import { assert } from "../_util/assert.ts";
export { NEWLINE, stringify, StringifyError } from "./csv_stringify.ts";
export type {
Column,
ColumnDetails,
DataItem,
StringifyOptions,
} from "./csv_stringify.ts";
const INVALID_RUNE = ["\r", "\n", '"'];
export const ERR_BARE_QUOTE = 'bare " in non-quoted-field';