diff --git a/test/app.js b/test/app.js new file mode 100644 index 0000000..f707e38 --- /dev/null +++ b/test/app.js @@ -0,0 +1,27 @@ +var fs = require("fs"); +var JSZip = require('jszip'); +let zip = new JSZip() + +new JSZip.external.Promise((resolve, reject)=>{ + fs.readFile('mythical_man_month__the__essays_on_software_engineering__anniversary_edition.zip', + (err, data)=>{ + if (err){ + reject(err); + } else { + resolve(data); + } + }) +}) +.then((data)=>{ + return JSZip.loadAsync(data) +}) +.then((zip)=>{ + console.log(zip) +}) +.catch((reason)=>{ + console.log(`Error: ${reason}`) +}) + + + +console.log('test') \ No newline at end of file