Skip to main content

@std/csv@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score70%
Published2 years ago (0.215.0)

Classes

c
StringifyError(message?: string)

Error thrown in stringify.

Functions

f
stringify(
data: DataItem[],
unnamed 1?: StringifyOptions
): string

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.

  • header: string
    No documentation available
  • prop: PropertyAccessor | PropertyAccessor[]
    No documentation available
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.

T
StringifyOptions = { headers?: boolean; separator?: string; columns?: Column[]; bom?: boolean; }

Options for stringify.

  • bom: boolean
    No documentation available
  • columns: Column[]
    No documentation available
  • headers: boolean
    No documentation available
  • separator: string
    No documentation available

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.

Add Package

deno add jsr:@std/csv

Import symbol

import * as mod from "@std/csv/stringify";
or

Import directly with a jsr specifier

import * as mod from "jsr:@std/csv/stringify";