0.2.2 • Published 5 years ago
csvwrap v0.2.2
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