I am trying to create and save an excel file. I used this module and followed their example. In my case I want to save the result locally. Somehow like this:
var fs = require('fs');
fs.writeFile(filename, result,"binary");
I cannot open the file via excel, because it's saying that the file is corrupted or broken. Looking again at the example of the module, I know that result
is in a binary format.
What can I do to parse result
correctly for saving the excel file?
Thanks in Advance.