{
"name": "abc",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"xls-to-json": "*"
}
}
var node_xj = require("xls-to-json");
node_xj({
input: "经纬度.xlsx", // input xls
output: "output.json" // output json
//sheet: "sheet1", // specific sheetname
}, function (err, result) {
if (err) {
console.error(err);
} else {
console.log(result);
}
});