xls-to-json-lc

Converting xls file to json files using nodejs. Credits DataGarage

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
xls-to-json-lc
100.3.46 years ago7 years agoMinified + gzip package size for xls-to-json-lc in KB

Readme

node-xls-json-lc
Build Status Credits to DataGarage Converting xls file to json files using nodejs. This is a fork of DataGarage module with additional option of converting excel headers to lowerCase as json keys.

Install

``` npm install xls-to-json-lc ```

Usage

``` javascript nodexj = require("xls-to-json-lc"); nodexj({
input: "sample.xls",  // input xls
output: "output.json", // output json
sheet: "sheetname",  // specific sheetname
lowerCaseHeaders:true
}, function(err, result) {
if(err) {
console.error(err);
} else {
console.log(result);
}
}); ``` In config object, you have to enter an input path. But If you don't want to output any file you can set to null.

License

MIT @chilijung