csvwrap
Simple CLI tool: CSV -> JS
Install
npm i csvwrap -g
Use
csvwrap
It will create .js
file for each .csv
file.
Example
Source CSV
data.csv
Name, AgeFoo, 10Bar, 20Baz, 11
Output
data.js
moduleexports="label":"Name""Age""data":"Foo""10""Bar""20""Baz""11"
TODO
- Custom separator
-
.d.ts
- Stream
- Filter option