{"_id":"end-or-error","_rev":"376942","name":"end-or-error","description":"Listen readable stream `end` or `error` event once","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"time":{"modified":"2021-07-31T15:51:45.000Z","created":"2015-02-23T08:44:53.666Z","1.0.1":"2015-02-24T08:43:06.266Z","1.0.0":"2015-02-23T08:44:53.666Z"},"users":{},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"repository":{"type":"git","url":"git://github.com/stream-utils/end-or-error.git","web":"https://github.com/stream-utils/end-or-error"},"versions":{"1.0.1":{"name":"end-or-error","version":"1.0.1","description":"Listen readable stream `end` or `error` event once","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 test/*.test.js","jshint":"jshint .","autod":"autod -w --prefix '~'","cnpm":"npm install --registry=https://registry.npm.taobao.org","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{},"devDependencies":{"autod":"*","contributors":"*","jshint":"*","istanbul":"*","mocha":"*"},"homepage":"https://github.com/stream-utils/end-or-error","repository":{"type":"git","url":"git://github.com/stream-utils/end-or-error.git","web":"https://github.com/stream-utils/end-or-error"},"bugs":{"url":"https://github.com/stream-utils/end-or-error/issues","email":"m@fengmk2.com"},"keywords":["end-or-error","readstream","readable","stream","end","eoe","stream-utils"],"engines":{"node":">= 0.11.14"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"}],"gitHead":"0c97b4d7a976fbf66b072f6064b211cee59e6b85","_id":"end-or-error@1.0.1","_shasum":"dc7a6210fe78d372fee24a8b4899dbd155414dcb","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.3.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"dc7a6210fe78d372fee24a8b4899dbd155414dcb","size":2141,"noattachment":false,"key":"/end-or-error/-/end-or-error-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/end-or-error/download/end-or-error-1.0.1.tgz"},"directories":{},"publish_time":1424767386266,"_cnpm_publish_time":1424767386266,"_hasShrinkwrap":false},"1.0.0":{"name":"end-or-error","version":"1.0.0","description":"Listen readable stream `end` or `error` event once","main":"index.js","files":["index.js"],"scripts":{"test":"mocha --check-leaks -R spec -t 5000 test/*.test.js","test-cov":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 test/*.test.js","test-travis":"node node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 test/*.test.js","jshint":"jshint .","autod":"autod -w --prefix '~'","cnpm":"npm install --registry=https://registry.npm.taobao.org","contributors":"contributors -f plain -o AUTHORS"},"dependencies":{},"devDependencies":{"autod":"*","contributors":"*","jshint":"*","istanbul":"*","mocha":"*"},"homepage":"https://github.com/node-modules/end-or-error","repository":{"type":"git","url":"git://github.com/node-modules/end-or-error.git","web":"https://github.com/node-modules/end-or-error"},"bugs":{"url":"https://github.com/node-modules/end-or-error/issues","email":"m@fengmk2.com"},"keywords":["end-or-error","readstream","readable","stream","end","eoe"],"engines":{"node":">= 0.11.14"},"author":{"name":"fengmk2","email":"m@fengmk2.com","url":"http://fengmk2.com"},"license":"MIT","contributors":[{"name":"fengmk2","email":"m@fengmk2.com","url":"https://fengmk2.com"}],"gitHead":"e6cf4f8d816d834e8ceb8a26258c2a1ef75caf3f","_id":"end-or-error@1.0.0","_shasum":"f0f5b87e25c9956affa63469a77355f530a6fd53","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.3.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"f0f5b87e25c9956affa63469a77355f530a6fd53","size":2122,"noattachment":false,"key":"/end-or-error/-/end-or-error-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/end-or-error/download/end-or-error-1.0.0.tgz"},"directories":{},"publish_time":1424681093666,"_cnpm_publish_time":1424681093666,"_hasShrinkwrap":false}},"readme":"end-or-error\n=======\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Gittip][gittip-image]][gittip-url]\n[![David deps][david-image]][david-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/end-or-error.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/end-or-error\n[travis-image]: https://img.shields.io/travis/stream-utils/end-or-error.svg?style=flat-square\n[travis-url]: https://travis-ci.org/stream-utils/end-or-error\n[coveralls-image]: https://img.shields.io/coveralls/stream-utils/end-or-error.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/stream-utils/end-or-error?branch=master\n[gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat-square\n[gittip-url]: https://www.gittip.com/fengmk2/\n[david-image]: https://img.shields.io/david/stream-utils/end-or-error.svg?style=flat-square\n[david-url]: https://david-dm.org/stream-utils/end-or-error\n[download-image]: https://img.shields.io/npm/dm/end-or-error.svg?style=flat-square\n[download-url]: https://npmjs.org/package/end-or-error\n\nListen readable stream `end` or `error` event once.\n\n## Install\n\n```bash\n$ npm i end-or-error\n```\n\n## Usage\n\n```js\nvar eoe = require('end-or-error');\n\nvar stream = createReadStreamSomeHow();\n\neoe(stream, function (err) {\n  // err => stream emitted \"error\" event\n});\n```\n\n## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/stream-utils/end-or-error","bugs":{"url":"https://github.com/stream-utils/end-or-error/issues","email":"m@fengmk2.com"},"license":"MIT"}