1.0.1 • Published 5 years ago

ndjson2csv v1.0.1

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

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

cat metrics.json | npx ndjson2csv > spreadsheet.csv
1.0.1

5 years ago