# json2csv

> Convert JSON to CSV

Latest version **6.0.0-alpha.2** (published 2023-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install json2csv
pnpm add json2csv
yarn add json2csv
bun add json2csv
```

Provides the command `json2csv`.

## Health

**Score 28/100 (F)** — status: abandoned.

Positive: has types package; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.0-alpha.2 |
| Published | 2023-01-21 |
| First published | 2012-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/json2csv) |
| Module format | ESM + CommonJS |
| Node | >= 12 |
| Dependencies | 3 |
| Unpacked size | 50 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2719 |
| Author | Mirco Zeiss |
| Maintainers | zemirco, knownasilya, juanjodiaz, azhang |
| Keywords | json, to, csv, export, convert, parse |

## Links

- npm: https://www.npmjs.com/package/json2csv
- Repository: https://github.com/zemirco/json2csv
- Homepage: http://zemirco.github.io/json2csv
- Issues: https://github.com/zemirco/json2csv/issues
- npm.io page: https://npm.io/package/json2csv

## Dependencies (3)

- [commander](https://npm.io/package/commander.md) ^6.2.0
- [lodash.get](https://npm.io/package/lodash.get.md) ^4.4.2
- [@streamparser/json](https://npm.io/package/@streamparser/json.md) ^0.0.6

## 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

- 6.0.0-alpha.2 (latest) — 2023-01-21
- 6.0.0-alpha.0 (alpha) — 2021-04-14
- 4.0.0-alpha.2 (prerelease) — 2018-02-25
- 5.0.7 — 2022-02-23
- 6.0.0-alpha.1 — 2022-02-23
- 5.0.6 — 2021-02-03
- 5.0.5 — 2020-11-16
- 5.0.4 — 2020-11-10
- 5.0.3 — 2020-09-24
- 5.0.2 — 2020-09-24
- 5.0.1 — 2020-04-28
- 5.0.0 — 2020-03-15
- 4.5.4 — 2019-10-09
- 4.5.3 — 2019-09-09
- 4.5.2 — 2019-07-05
- … 89 more at https://npm.io/package/json2csv/versions

## README

# :warning: WARNING: THIS PACKAGE IS ABANDONED

The code has moved to a [new home](https://github.com/juanjoDiaz/json2csv).

This repository stays as a the historic home of `json2csv` up until v5.
From v6, the library has been broken into smaller libraries that are now published to NPM independently:

* **[Plainjs](https://www.npmjs.com/package/@json2csv/plainjs):** Includes the `Parser` API and a new `StreamParser` API which doesn't the conversion in a streaming fashion in pure js.
* **[Node](https://www.npmjs.com/package/@json2csv/node):** Includes the `Node Transform` and `Node Async Parser` APIs for Node users.
* **[WHATWG](https://www.npmjs.com/package/@json2csv/whatwg):** Includes the `WHATWG Transform Stream` and `WHATWG Async Parser` APIs for users of WHATWG streams (browser, Node or Deno).
* **[CLI](https://www.npmjs.com/package/@json2csv/cli):** Includes the `CLI` interface.
* **[Transforms](https://www.npmjs.com/package/@json2csv/transforms):** Includes the built-in `transforms` for json2csv.
* **[Formatters](https://www.npmjs.com/package/@json2csv/formatters):** Includes the built-in `formatters` for json2csv. Formatters are the new way to format data before adding it to the resulting CSV.

Up-to-date documentation of the library can be found at https://juanjodiaz.github.io/json2csv

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