hexo/node_modules/end-or-error
jkjoy 9a9cb42f53 20231003 update 2023-10-03 11:14:36 +08:00
..
History.md 20231003 update 2023-10-03 11:14:36 +08:00
LICENSE 20231003 update 2023-10-03 11:14:36 +08:00
README.md 20231003 update 2023-10-03 11:14:36 +08:00
index.js 20231003 update 2023-10-03 11:14:36 +08:00
package.json 20231003 update 2023-10-03 11:14:36 +08:00

README.md

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