UNPKG

csv-2-json

Version:

Utility module for parsing csv data to json and saving it to file

11 lines 241 B
/* * /* Example using custom options for creating JSON file from CSV /* /* */ var csvtojson = require('./../../csv-2-json'); var options = { filename:"report.json", indent: 4, delimiter:"\t" } csvtojson.toJson('./sample1.csv', options);