EvanOxfeld / node-unzip

node.js cross-platform unzip using streams
MIT License
613 stars 343 forks source link

enhancement: Set option for deletion #106

Open Bizarrus opened 7 years ago

Bizarrus commented 7 years ago

If extracting are finished, i wan't an option to delete the ZIP-Archive.

Sample: var file = 'test.zip'; var path = './';

fs.createReadStream(file).pipe(UnZIP.Extract({
    path:    path,
    delete: true // New Option
});

Yes, we can adding the .on('finish', callback) Event, but i think, this option must be implemented as a feature.