Skip to content

Instantly share code, notes, and snippets.

@radjivF
Created January 20, 2015 10:02
Show Gist options
  • Save radjivF/15df9a90600504c0b3f4 to your computer and use it in GitHub Desktop.
Save radjivF/15df9a90600504c0b3f4 to your computer and use it in GitHub Desktop.
convertXlsxToJson.js
var xlsxj = require("xlsx-to-json");
input = "name_file.xlsx"
function convertXlsxToJson(file) {
xlsxj({
input: file,
output: "output.json"
}, function(err, result) {
if(err) {
console.error(err);
}else {
console.log(result);
}
});
}
convertXlsxToJson(input);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment