Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gnlow/csvwrap

Simple CLI tool: CSV -> JS
https://github.com/gnlow/csvwrap

cli csv tool

Last synced: 17 days ago
JSON representation

Simple CLI tool: CSV -> JS

Awesome Lists containing this project

README

        

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