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

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -