create a empty file, and add it to zip. Then using unzip module to get its entries as below:
var entries = [];
zipStream.pipe(unzip.Parse({verbose: true}))
.on('entry', function(entry) {
entries.push({path: entry.path});
entry.autodrain();
})
.on('close', function() {
console.log(entries); // there is no chance to fire close event
});
create a empty file, and add it to zip. Then using unzip module to get its entries as below: