2.1.1 • Published 3 years ago
xls-to-json v2.1.1
node-xls-json
Convert xls files to JSON in NodeJS
Install
npm i xls-to-json
Usage
node_xj = require("xls-to-json");
node_xj(
{
input: "sample.xls", // input xls
output: "output.json", // output json
sheet: "sheetname", // specific sheetname
rowsToSkip: 5, // number of rows to skip at the top of the sheet; defaults to 0
allowEmptyKey: false, // avoids empty keys in the output, example: {"": "something"}; default: 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
2.1.1
3 years ago
2.1.0
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
2.0.0
5 years ago
0.5.4
6 years ago
0.5.2
6 years ago
0.5.1
7 years ago
0.5.0
7 years ago
0.4.0
9 years ago
0.3.2
11 years ago
0.3.1
11 years ago
0.3.0
11 years ago
0.2.2
11 years ago
0.2.1
11 years ago
0.2.0
11 years ago
0.1.1
11 years ago
0.1.0
11 years ago
0.0.2
11 years ago
0.0.1
11 years ago
0.0.0
11 years ago