Skip to content

Instantly share code, notes, and snippets.

@Nedudi
Created May 15, 2018 11:43
Show Gist options
  • Save Nedudi/683c2492bc3a0a5117637254e9a928a7 to your computer and use it in GitHub Desktop.
Save Nedudi/683c2492bc3a0a5117637254e9a928a7 to your computer and use it in GitHub Desktop.
var filename = "write.xlsx";
var data = [[1,2,3],[true, false, null, "sheetjs"],["foo","bar",new Date("2014-02-19T14:30Z"), "0.3"], ["baz", null, "qux"]]
var ws_name = "Missed Calls";
var wb = XLSX.utils.book_new(), ws = XLSX.utils.aoa_to_sheet(data);
XLSX.utils.book_append_sheet(wb, ws, ws_name);
XLSX.writeFile(wb, filename);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment