rs-csv2json
v1.1.0
Published
Converts CSV files to JSON files
Downloads
2
Maintainers
Readme
rs-csv2json
Converts CSV files to JSON files
Written and tested in node version 16.15.1
Convert csv files to json
To quickly get csv files converted into json do...
- Clone repo
git clone https://github.com/rsteinmann/rs-csv2json.git
- Run
npm install
- Put as many
.csv
files into folder./input
- Run
npm start
- Check
./output
folder for json files
Use as node module
To use this module in your project do...
- Run
npm i rs-csv2json
- Touch the file you would like to add functionality
- Add following script
const path = require('path')
const csv2json = require('rs-csv2json')
const inputPath = path.join(__dirname, `./input`) // set input path to csv files
const outputPath = path.join(__dirname, `./output`) // set output path to destionation
csv2json(inputPath, outputPath)
.then((report) => console.log(report))