# ndjson2csv

> Transform NDJSON to CSV

Latest version **1.0.1** (published 2019-02-01) · ISC license · 0 weekly downloads

## Install

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

Provides the command `ndjson2csv`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-02-01 |
| First published | 2019-02-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=11.4.0 |
| Dependencies | 0 |
| Unpacked size | 2.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sebastiaan Deckers |
| Maintainers | seb |
| Keywords | ndjson, jsonl, csv |

## Links

- npm: https://www.npmjs.com/package/ndjson2csv
- Repository: https://gitlab.com/sebdeckers/ndjson2csv
- Homepage: https://gitlab.com/sebdeckers/ndjson2csv#readme
- Issues: https://gitlab.com/sebdeckers/ndjson2csv/issues
- npm.io page: https://npm.io/package/ndjson2csv

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-02-01

## README

# ndjson2csv

CLI tool that turns NDJSON into CSV.

Ignores lines that do not parse as JSON.

Ignores trailing commas so it also works with regular JSON.

JSON properties of the first valid row become the CSV headers column names.

Compatible with JSONL or JSON lines format.

## Usage

```bash
cat metrics.json | npx ndjson2csv > spreadsheet.csv
```

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