csv-to-json
v0.1.2
Published
parses csv and returns it into json object
Downloads
1,167
Maintainers
Readme
Converts your csv into json structure
##Usage
var csv = require('csv-to-json');
###.parse(obj, callback); Parses the csv and returns it in JSON format Expected parameters of
var obj = {
filename: PATH_TO_FILE
};
var callback = function(err, json) {
// Do something
};
###.writeJsonToFile(obj, callback) Writes JSON to file
var obj = {
filename: PATH_TO_FILE,
json: JSON_OBJECT
};
var callback = function(err) {
// Do something
};
###Test
npm test