Skip to main content
Home

@std/csv@0.215.0

latest
It is unknown whether this package works with Node.js, Deno, Browsers, Cloudflare Workers, Bun
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score
70%
Published
a year ago (0.215.0)
class CsvParseStream

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

A CsvParseStream expects input conforming to RFC 4180.

Examples

Example 1

import { CsvParseStream } from "@std/csv/csv_parse_stream";
const res = await fetch("https://example.com/data.csv");
const parts = res.body!
  .pipeThrough(new TextDecoderStream())
  .pipeThrough(new CsvParseStream());

Constructors

new
CsvParseStream(options?: T)

Construct a new instance.

Type Parameters

T extends CsvParseStreamOptions | undefined = undefined

Properties

The instance's ReadableStream.

The instance's WritableStream.

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.

Add Package

deno add jsr:@std/csv

Import symbol

import { CsvParseStream } from "@std/csv/csv_parse_stream";
or

Import directly with a jsr specifier

import { CsvParseStream } from "jsr:@std/csv/csv_parse_stream";

Add Package

pnpm i jsr:@std/csv
or (using pnpm 10.8 or older)
pnpm dlx jsr add @std/csv

Import symbol

import { CsvParseStream } from "@std/csv/csv_parse_stream";

Add Package

yarn add jsr:@std/csv
or (using Yarn 4.8 or older)
yarn dlx jsr add @std/csv

Import symbol

import { CsvParseStream } from "@std/csv/csv_parse_stream";

Add Package

npx jsr add @std/csv

Import symbol

import { CsvParseStream } from "@std/csv/csv_parse_stream";

Add Package

bunx jsr add @std/csv

Import symbol

import { CsvParseStream } from "@std/csv/csv_parse_stream";