end-or-error

1.0.1 • Public • Published

end-or-error

NPM version build status Test coverage Gittip David deps npm download

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
});

License

MIT

Package Sidebar

Install

npm i end-or-error

Weekly Downloads

28,972

Version

1.0.1

License

MIT

Last publish

Collaborators

  • fengmk2