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
StringifyError(message?: string)
Error thrown in stringify.
Functions
f
stringify(): string
data: DataItem[],
unnamed 1?: StringifyOptions
Write data using CSV encoding.
Type Aliases
T
Column = ColumnDetails | PropertyAccessor | PropertyAccessor[]
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 = { header?: string; prop: PropertyAccessor | PropertyAccessor[]; }
Column information.
T
DataItem = Record<string, unknown> | unknown[]
An object (plain or array)
T
PropertyAccessor = number | string
Array index or record key corresponding to a value for a data object.