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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -