hexo/node_modules/end-or-error
jkjoy 5d2d87c740 20230925 2023-09-25 15:58:56 +08:00
..
History.md 20230925 2023-09-25 15:58:56 +08:00
LICENSE 20230925 2023-09-25 15:58:56 +08:00
README.md 20230925 2023-09-25 15:58:56 +08:00
index.js 20230925 2023-09-25 15:58:56 +08:00
package.json 20230925 2023-09-25 15:58:56 +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