I was trying JSZip on NodeJS to create some ZIP file but i'm facing an issue.
I'm using the code proposed by JSZip :
var JSZip = require('JSZip')
var zip = new JSZip()
zip.file("Hello.txt", "Hello World\n")
zip.generateAsync({type:"blob"}).then(function(content) {
//do things here
});
Currently the code throw an error on generateAsync
UnhandledPromiseRejectionWarning: Error: blob is not supported by this platform
Did something need to be install or the data I set in zip.file should be in a certain format ?