xlsx-template icon indicating copy to clipboard operation
xlsx-template copied to clipboard

Documentation improvement: how to write file

Open sanderd17 opened this issue 8 years ago • 1 comments

When I tried this at first, I always received corrupt files. I opened it with a text editor, and saw a lot more XML than I'd expect in a zip.

The reason was that I used fs.writeFile(fileName, data) instead of fs.writeFile(fileName, data, 'binary').

It might be worth mentioning this in the docs

sanderd17 avatar Feb 13 '17 12:02 sanderd17

Perhaps a pull request? Just change the README.

pencilcheck avatar May 14 '17 01:05 pencilcheck