{"_id":"is-stream-ended","_rev":"293807","name":"is-stream-ended","description":"Check if a stream has ended","dist-tags":{"latest":"0.1.4"},"maintainers":[{"name":"stephenplusplus","email":""}],"time":{"modified":"2021-06-03T18:54:37.000Z","created":"2015-07-30T14:33:48.389Z","0.1.4":"2018-04-01T22:49:26.066Z","0.1.3":"2017-05-05T20:35:32.626Z","0.1.2":"2017-05-04T17:10:52.507Z","0.1.1":"2017-05-04T17:10:10.107Z","0.1.0":"2015-07-30T14:33:48.389Z"},"users":{},"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/stephenplusplus/is-stream-ended.git"},"versions":{"0.1.4":{"name":"is-stream-ended","version":"0.1.4","description":"Check if a stream has ended","main":"index.js","types":"index.d.ts","dependencies":{},"devDependencies":{"mocha":"^2.2.5","through2":"^2.0.3"},"files":["index.js","index.d.ts"],"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/stephenplusplus/is-stream-ended.git"},"keywords":["stream","end","ended","consumed","complete"],"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/stephenplusplus/is-stream-ended/issues"},"homepage":"https://github.com/stephenplusplus/is-stream-ended#readme","gitHead":"31bf33b6121623b9c1f4f10b9b3dbad4112798d8","_id":"is-stream-ended@0.1.4","_npmVersion":"5.8.0","_nodeVersion":"9.8.0","_npmUser":{"name":"stephenplusplus","email":"stephenplusplusplus@gmail.com"},"dist":{"shasum":"f50224e95e06bce0e356d440a4827cd35b267eda","size":1557,"noattachment":false,"key":"/is-stream-ended/-/is-stream-ended-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-stream-ended/download/is-stream-ended-0.1.4.tgz"},"maintainers":[{"name":"stephenplusplus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-stream-ended_0.1.4_1522622965954_0.14039750499337122"},"_hasShrinkwrap":false,"publish_time":1522622966066,"_cnpm_publish_time":1522622966066},"0.1.3":{"name":"is-stream-ended","version":"0.1.3","description":"Check if a stream has ended","main":"index.js","dependencies":{},"devDependencies":{"mocha":"^2.2.5","through2":"^2.0.3"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/stephenplusplus/is-stream-ended.git"},"keywords":["stream","end","ended","consumed","complete"],"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/stephenplusplus/is-stream-ended/issues"},"homepage":"https://github.com/stephenplusplus/is-stream-ended#readme","gitHead":"3091582f5b88f549f2d9b5a8fb13bf359a2c0909","_id":"is-stream-ended@0.1.3","_shasum":"a0473b267c756635486beedc7e3344e549d152ac","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"stephenplusplus","email":"sawchuk@gmail.com"},"dist":{"shasum":"a0473b267c756635486beedc7e3344e549d152ac","size":1822,"noattachment":false,"key":"/is-stream-ended/-/is-stream-ended-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-stream-ended/download/is-stream-ended-0.1.3.tgz"},"maintainers":[{"name":"stephenplusplus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-stream-ended-0.1.3.tgz_1494016531327_0.8764913999475539"},"directories":{},"publish_time":1494016532626,"_cnpm_publish_time":1494016532626,"_hasShrinkwrap":false},"0.1.2":{"name":"is-stream-ended","version":"0.1.2","description":"Check if a stream has ended","main":"index.js","dependencies":{},"devDependencies":{"mocha":"^2.2.5","through2":"^2.0.3"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/stephenplusplus/is-stream-ended.git"},"keywords":["stream","end","ended","consumed","complete"],"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/stephenplusplus/is-stream-ended/issues"},"homepage":"https://github.com/stephenplusplus/is-stream-ended#readme","gitHead":"142372672a0b0b6cb615ac35a70be67a5eeeb6c2","_id":"is-stream-ended@0.1.2","_shasum":"920a7ffdc0febc259c9a4cd30a873dae4c264aa8","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"stephenplusplus","email":"sawchuk@gmail.com"},"dist":{"shasum":"920a7ffdc0febc259c9a4cd30a873dae4c264aa8","size":1880,"noattachment":false,"key":"/is-stream-ended/-/is-stream-ended-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-stream-ended/download/is-stream-ended-0.1.2.tgz"},"maintainers":[{"name":"stephenplusplus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/is-stream-ended-0.1.2.tgz_1493917850667_0.40966786025092006"},"directories":{},"publish_time":1493917852507,"_hasShrinkwrap":false,"_cnpm_publish_time":1493917852507},"0.1.1":{"name":"is-stream-ended","version":"0.1.1","description":"Check if a stream has ended","main":"index.js","dependencies":{},"devDependencies":{"mocha":"^2.2.5","through2":"^2.0.3"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/stephenplusplus/is-stream-ended.git"},"keywords":["stream","end","ended","consumed","complete"],"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/stephenplusplus/is-stream-ended/issues"},"homepage":"https://github.com/stephenplusplus/is-stream-ended#readme","gitHead":"369040786841cb160566fa2a20d33ff4f6c084b9","_id":"is-stream-ended@0.1.1","_shasum":"b5ee87fef3e88cf94f40cbaba7bb06768e168e41","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"stephenplusplus","email":"sawchuk@gmail.com"},"dist":{"shasum":"b5ee87fef3e88cf94f40cbaba7bb06768e168e41","size":1891,"noattachment":false,"key":"/is-stream-ended/-/is-stream-ended-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-stream-ended/download/is-stream-ended-0.1.1.tgz"},"maintainers":[{"name":"stephenplusplus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/is-stream-ended-0.1.1.tgz_1493917809041_0.09534793999046087"},"directories":{},"publish_time":1493917810107,"_hasShrinkwrap":false,"_cnpm_publish_time":1493917810107},"0.1.0":{"name":"is-stream-ended","version":"0.1.0","description":"Check if a stream has ended","main":"index.js","dependencies":{},"devDependencies":{"mocha":"^2.2.5"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/stephenplusplus/is-stream-ended.git"},"keywords":["stream","end","ended","consumed","complete"],"author":{"name":"Stephen Sawchuk","email":"sawchuk@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/stephenplusplus/is-stream-ended/issues"},"homepage":"https://github.com/stephenplusplus/is-stream-ended#readme","gitHead":"1f4f737881f11c6715184528376e32aa8ddf1a60","_id":"is-stream-ended@0.1.0","_shasum":"40f058df6b044ee598fee4df7dc1ec2bcdd8df60","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"stephenplusplus","email":"sawchuk@gmail.com"},"dist":{"shasum":"40f058df6b044ee598fee4df7dc1ec2bcdd8df60","size":1837,"noattachment":false,"key":"/is-stream-ended/-/is-stream-ended-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-stream-ended/download/is-stream-ended-0.1.0.tgz"},"maintainers":[{"name":"stephenplusplus","email":""}],"directories":{},"publish_time":1438266828389,"_cnpm_publish_time":1438266828389,"_hasShrinkwrap":false}},"readme":"# is-stream-ended\n> Check if a stream has ended.\n\n```sh\n$ npm install --save is-stream-ended\n```\n```js\nvar isStreamEnded = require('is-stream-ended');\n\nisStreamEnded(stream); // false\nstream.end();\nisStreamEnded(stream); // true\n```\n\n### isStreamEnded(stream)\n\n#### stream\n\n- Type: `Stream`, `Object`\n\nProviding a stream will check against the `stream._readableState` object. To check from the `_writableState`, provide that object directly.\n","_attachments":{},"homepage":"https://github.com/stephenplusplus/is-stream-ended#readme","bugs":{"url":"https://github.com/stephenplusplus/is-stream-ended/issues"},"license":"MIT"}