# @datastream/csv

> CSV parsing and formatting transform streams

Latest version **0.7.1** (published 2026-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @datastream/csv
pnpm add @datastream/csv
yarn add @datastream/csv
bun add @datastream/csv
```

## Health

**Score 75/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.7.1 |
| Published | 2026-08-05 |
| First published | 2022-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=24 |
| Dependencies | 2 |
| Unpacked size | 162.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 8 |
| Author | datastream contributors |
| Maintainers | willfarrell |
| Keywords | csv, json, transform, Web Stream API, Node Stream API |

## Links

- npm: https://www.npmjs.com/package/@datastream/csv
- Repository: https://github.com/willfarrell/datastream
- Homepage: https://datastream.js.org
- Issues: https://github.com/willfarrell/datastream/issues
- npm.io page: https://npm.io/package/@datastream/csv

## Dependencies (2)

- [@datastream/core](https://npm.io/package/@datastream/core.md) 0.7.1
- [@datastream/object](https://npm.io/package/@datastream/object.md) 0.7.1

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.7.1 (latest) — 2026-08-05
- 0.7.0 — 2026-07-22
- 0.5.0 — 2026-05-09
- 0.4.0 — 2026-04-19
- 0.3.2 — 2026-04-16
- 0.3.1 — 2026-04-16
- 0.3.0 — 2026-04-16
- 0.2.0 — 2026-04-16
- 0.1.6 — 2026-03-18
- 0.1.5 — 2026-03-18
- 0.1.4 — 2026-03-17
- 0.0.42 — 2025-11-24
- 0.0.41 — 2025-08-24
- 0.0.40 — 2024-09-25
- 0.0.39 — 2024-09-25
- … 38 more at https://npm.io/package/@datastream/csv/versions

## README

<div align="center">
  <h1>&lt;datastream&gt; `csv`</h1>
  <img alt="datastream logo" src="https://raw.githubusercontent.com/willfarrell/datastream/main/websites/datastream.js.org/static/img/datastream-logo.svg"/>
  <p><strong>CSV parsing and formatting streams.</strong></p>
<p>
	<a href="https://github.com/willfarrell/datastream/actions/workflows/test-unit.yml"><img src="https://github.com/willfarrell/datastream/actions/workflows/test-unit.yml/badge.svg" alt="GitHub Actions unit test status"></a>
	<a href="https://github.com/willfarrell/datastream/actions/workflows/test-dast.yml"><img src="https://github.com/willfarrell/datastream/actions/workflows/test-dast.yml/badge.svg" alt="GitHub Actions dast test status"></a>
	<a href="https://github.com/willfarrell/datastream/actions/workflows/test-perf.yml"><img src="https://github.com/willfarrell/datastream/actions/workflows/test-perf.yml/badge.svg" alt="GitHub Actions perf test status"></a>
	<a href="https://github.com/willfarrell/datastream/actions/workflows/test-sast.yml"><img src="https://github.com/willfarrell/datastream/actions/workflows/test-sast.yml/badge.svg" alt="GitHub Actions SAST test status"></a>
	<a href="https://github.com/willfarrell/datastream/actions/workflows/test-lint.yml"><img src="https://github.com/willfarrell/datastream/actions/workflows/test-lint.yml/badge.svg" alt="GitHub Actions lint test status"></a>
	<br/>
	<a href="https://www.npmjs.com/package/@datastream/csv"><img alt="npm version" src="https://img.shields.io/npm/v/@datastream/csv.svg"></a>
	<a href="https://packagephobia.com/result?p=@datastream/csv"><img src="https://packagephobia.com/badge?p=@datastream/csv" alt="npm install size"></a>
	<a href="https://www.npmjs.com/package/@datastream/csv">
	<img alt="npm weekly downloads" src="https://img.shields.io/npm/dw/@datastream/csv.svg"></a>
	<a href="https://www.npmjs.com/package/@datastream/csv#provenance">
	<img alt="npm provenance" src="https://img.shields.io/badge/provenance-Yes-brightgreen"></a>
	<br/>
	<a href="https://scorecard.dev/viewer/?uri=github.com/willfarrell/datastream"><img src="https://api.scorecard.dev/projects/github.com/willfarrell/datastream/badge" alt="Open Source Security Foundation (OpenSSF) Scorecard"></a>
	<a href="https://slsa.dev"><img src="https://slsa.dev/images/gh-badge-level3.svg" alt="SLSA 3"></a>
	<a href="https://github.com/willfarrell/datastream/blob/main/.github/CODE_OF_CONDUCT.md"><img src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg"></a>
	<a href="https://biomejs.dev"><img alt="Checked with Biome" src="https://img.shields.io/badge/Checked_with-Biome-60a5fa?style=flat&logo=biome"></a>
	<a href="https://conventionalcommits.org"><img alt="Conventional Commits" src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white"></a>
	<a href="https://github.com/willfarrell/datastream/blob/main/package.json#L25">
	<img alt="code coverage" src="https://img.shields.io/badge/code%20coverage-95%25-brightgreen"></a>
</p>
<p>You can read the documentation at: <a href="https://datastream.js.org">https://datastream.js.org</a></p>
</div>


## Install

To install datastream you can use NPM:

```bash
npm install --save @datastream/csv
```


## Documentation and examples

For documentation and examples, refer to the main [datastream monorepo on GitHub](https://github.com/willfarrell/datastream) or [datastream official website](https://datastream.js.org).


## Contributing

Everyone is very welcome to contribute to this repository. Feel free to [raise issues](https://github.com/willfarrell/datastream/issues) or to [submit Pull Requests](https://github.com/willfarrell/datastream/pulls).


## License

Licensed under [MIT License](LICENSE). Copyright (c) 2026 [will Farrell](https://github.com/willfarrell), and [datastream contributors](https://github.com/willfarrell/datastream/graphs/contributors).

---
_Source: https://npm.io/package/@datastream/csv · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
