Transform CSVs to JSON lines, from files or streams.
- git clone
- npm install
Read CSV data from a file and stream out transformed data as JSON lines.
node index.js -f data.csv > data.jsonl
Command line parameters:
--file -f String Path to file containing CSV data
Stream CSV data from stdin and stream out transformed data as JSON lines.
cat data.csv | node index.js [--id hash] > data.jsonl
Command line parameters:
--id -i Whether to generate an ID for each object. Accepted values: hash (generates a hash from the converted JSON object).