Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erdii/csv2jsonstream

the cheapest streaming csv to json-array cli converter EVER - but it's fast!
https://github.com/erdii/csv2jsonstream

array converter csv header json stream

Last synced: about 1 month ago
JSON representation

the cheapest streaming csv to json-array cli converter EVER - but it's fast!

Awesome Lists containing this project

README

        

# csv2jsonstream

the cheapest csv to json-array converter EVER!

* uses [papaparse](https://www.papaparse.com/)
* assumes csv header rows
* outputs rows in a streaming manner

### installation

`npm i -g @erdii/csv2jsonstream`

### usage

* Read csv from file: `csv2jsonstream input.csv > output.json`
* Read csv from stdin: `cat input.csv | csv2jsonstream > output.json`