node.js - change sheet name in excel while exporting using json2xls -
hi using json2xls in nodejs-mongodb application
https://www.npmjs.com/package/json2xls
var json2xls = require('json2xls'); var json = { foo: 'bar', qux: 'moo', poo: 123, stux: new date() } var xls = json2xls(json); fs.writefilesync('data.xlsx', xls, 'binary')
and able download xls file. bt need change default sheet name in excel file "sheet 1" other name, please resolve
Comments
Post a Comment