end-or-error
v1.0.1
Published
Listen readable stream `end` or `error` event once
Downloads
209,187
Maintainers
Readme
end-or-error
Listen readable stream end
or error
event once.
Install
$ npm i end-or-error
Usage
var eoe = require('end-or-error');
var stream = createReadStreamSomeHow();
eoe(stream, function (err) {
// err => stream emitted "error" event
});