node-unzip icon indicating copy to clipboard operation
node-unzip copied to clipboard

Finished

Open mn1aC opened this issue 9 years ago • 2 comments

How to fire the finished or end event?

mn1aC avatar Mar 26 '15 18:03 mn1aC

+1 I also don't get neither close, nor finish, nor end events triggered.

var request = require('request');
var unzip = require('unzip');

request('http://path/to/archive.zip').
    on('error', function(error) {
      console.error(error);

    }).on('close', function() {
      console.log('Successfully unzipped!');

    }).on('finish', function() {
      console.info('Weird `finish` got fired.');

    }).on('end', function() {
      console.info('Weird `end` got fired.');

    }).pipe(unzip.Extract({ path: 'output/path' }));

None of the console gets printed in CLI, means non of the subscribed events got triggered_!_ Probably events emitting is done wrong or something…

Files are extracted, however_!_ References #21

niksumeiko avatar Jul 08 '15 17:07 niksumeiko

See also PR https://github.com/EvanOxfeld/node-unzip/pull/100 (temporarily published as unzipper on npm)

ZJONSSON avatar Jul 05 '16 16:07 ZJONSSON