noddy asked this 4 years ago

Where to define handler for pipe finished in Node.js?

How to detect when pipe completed and define a callback?


Which is better place to define callback, 

Reader.on('end', function(){



Writer.on('finish', function() {


or is there some other event if pipe completed?

No answers yet..