Formatting in the node-xlsx module

I am using node-xlsx module to generate xlsx file.

Prior to version 0.4, the input was specified as:

[{"value":"Name","bold":true,"formatCode":"General","autoWidth":true},"value":"Age","bold":true,"formatCode":"General","autoWidth":true}]

      

It was so easy to format. But since v0.5, it accepts data in an Array like:

[["Name","age"],["Ashu","25"]

      

It is impossible to figure out how to apply the style in this new format. NPM: https://www.npmjs.org/package/node-xlsx

+3


source to share





All Articles