Open hellolwq opened 6 years ago
fyi, your sample file works with an active fork unzipper
const request = require('request');
const unzipper = require('unzipper');
request('https://github.com/EvanOxfeld/node-unzip/files/1678258/samples.zip')
.pipe(unzipper.Parse())
.on('entry', entry => entry.autodrain())
.promise()
.then( () => console.log('done'), e => console.log('error',e));
samples.zip
sample zip files will cause unzip in dead _flush loop, handle the error and finish events can avoid this.