Skip to content

Instantly share code, notes, and snippets.

@hkusoft
Created February 8, 2020 12:07
Show Gist options
  • Save hkusoft/18e21e4f1bdfce888173488b71489e8c to your computer and use it in GitHub Desktop.
Save hkusoft/18e21e4f1bdfce888173488b71489e8c to your computer and use it in GitHub Desktop.
var workbook = new Excel.Workbook();
workbook.xlsx.readFile(filename).then(() => {
var worksheet = workbook.getWorksheet(sheet);
worksheet.eachRow({ includeEmpty: true }, function(row, rowNumber) {
console.log("Row " + rowNumber + " = " + JSON.stringify(row.values));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment