rs-csv2json
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "rs-csv2json", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Converts CSV files to JSON files", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
# rs-csv2json | ||
Converts CSV files to JSON files | ||
Written in node.js | ||
Written and tested in node version 16.15.1 | ||
## Convert csv files to json | ||
To quickly get csv files converted into json do... | ||
1. Clone repo `git clone https://github.com/rsteinmann/rs-csv2json.git` | ||
@@ -13,1 +15,20 @@ 2. Run `npm install` | ||
5. Check `./output` folder for json files | ||
## Use as node module | ||
To use this module in your project do... | ||
1. Run `npm i rs-csv2json` | ||
2. Touch the file you would like to add functionality | ||
3. Add following script | ||
```js | ||
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)) | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7705
33