csvwrap
v0.2.2
Published
Simple tool: CSV -> JS package
Downloads
2
Readme
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, Age
Foo, 10
Bar, 20
Baz, 11
Output
data.js
module.exports={"label":["Name","Age"],"data":[["Foo","10"],["Bar","20"],["Baz","11"]]}
TODO
- [ ] Custom separator
- [ ]
.d.ts
- [ ] Stream
- [ ] Filter option