csvwrap

0.2.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i csvwrap

Weekly Downloads

1

Version

0.2.2

License

MIT

Unpacked Size

3.7 kB

Total Files

5

Last publish

Collaborators

  • entrydark