UNPKG

csvtojsonsync

Version:

"convert csv to json synchronusly"

15 lines (11 loc) 353 B
## csvtoJsonsync Convert a simple csv file to json synchronously. it require two parameter: the csv filename and the delimeter for the file the default is ";" ``` var csvtoJsonSync = require("csvtojsonsync"); var csv = csvtoJsonSync("file.csv");// default 2nd parameter ";" console.log(csv);//[{...}] ``` ## install ``` npm install csvtojsonsync ```