csv-xlsx-to-json
v0.0.2
Published
Single module to convert various formats of csv and xlsx to json
Downloads
51
Maintainers
Readme
csv-xlsx-to-json
Processes csv and xlsx and convert them to json
introduction
Utilizes xlsx-to-json module by chilijung and csv-stream module by lbdremy to provide one simple to use package for converting xlsx and csv documents to json.
Getting Started
Watch for attachments:
var sheetToJson = require('csv-xlsx-to-json');
var filePath = "some/file/path/file.csv";
sheetToJson.process(filePath, function(err, result){
if(err){
//handle err
}
//do something with your json result
})
installation
$ npm install csv-xlsx-to-json
Dependencies
This module uses xlsx-to-json and csv-stream. For more robust individual features use these modules instead.