{"_id":"end-of-stream","_rev":"27-997c673d511a865ad743196050d33c15","name":"end-of-stream","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"end-of-stream","version":"0.1.0","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","_id":"end-of-stream@0.1.0","dist":{"shasum":"310772e4b1a2855c9a7d809d916ecf964f7831f4","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{}},"0.1.1":{"name":"end-of-stream","version":"0.1.1","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","_id":"end-of-stream@0.1.1","dist":{"shasum":"fc099fa7ff955d4bd9626a9adf37ee7161e1c81e","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{}},"0.1.2":{"name":"end-of-stream","version":"0.1.2","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","_id":"end-of-stream@0.1.2","dist":{"shasum":"5079910317c36b7870f655d4c7c1fb614daddaa5","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{}},"0.1.3":{"name":"end-of-stream","version":"0.1.3","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","_id":"end-of-stream@0.1.3","dist":{"shasum":"397eb7c9e0a195ab5d3b9609c578ad33ed4997c3","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{}},"0.1.4":{"name":"end-of-stream","version":"0.1.4","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","_id":"end-of-stream@0.1.4","dist":{"shasum":"4a69b38706ecaaed83c53d22b7f073848ca9a203","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.4.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{}},"0.1.5":{"name":"end-of-stream","version":"0.1.5","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","main":"index.js","author":{"name":"Mathias Buus","email":"mathiasbuus@gmail.com"},"license":"MIT","_id":"end-of-stream@0.1.5","_shasum":"8e177206c3c80837d85632e8b9359dfe8b2f6eaf","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"8e177206c3c80837d85632e8b9359dfe8b2f6eaf","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-0.1.5.tgz"},"directories":{}},"1.0.0":{"name":"end-of-stream","version":"1.0.0","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","main":"index.js","author":{"name":"Mathias Buus","email":"mathiasbuus@gmail.com"},"license":"MIT","_id":"end-of-stream@1.0.0","_shasum":"d4596e702734a93e40e9af864319eabd99ff2f0e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"d4596e702734a93e40e9af864319eabd99ff2f0e","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-1.0.0.tgz"},"directories":{}},"1.1.0":{"name":"end-of-stream","version":"1.1.0","description":"Call a callback when a readable/writable/duplex stream has completed or failed.","repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"dependencies":{"once":"~1.3.0"},"scripts":{"test":"node test.js"},"keywords":["stream","streams","callback","finish","close","end","wait"],"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"homepage":"https://github.com/mafintosh/end-of-stream","main":"index.js","author":{"name":"Mathias Buus","email":"mathiasbuus@gmail.com"},"license":"MIT","gitHead":"16120f1529961ffd6e48118d8d978c97444633d4","_id":"end-of-stream@1.1.0","_shasum":"e9353258baa9108965efc41cb0ef8ade2f3cfb07","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"e9353258baa9108965efc41cb0ef8ade2f3cfb07","tarball":"http://registry.npmjs.org/end-of-stream/-/end-of-stream-1.1.0.tgz"},"directories":{}}},"readme":"# end-of-stream\n\nA node module that calls a callback when a readable/writable/duplex stream has completed or failed.\n\n\tnpm install end-of-stream\n\n## Usage\n\nSimply pass a stream and a callback to the `eos`.\nBoth legacy streams and streams2 are supported.\n\n``` js\nvar eos = require('end-of-stream');\n\neos(readableStream, function(err) {\n\tif (err) return console.log('stream had an error or closed early');\n\tconsole.log('stream has ended');\n});\n\neos(writableStream, function(err) {\n\tif (err) return console.log('stream had an error or closed early');\n\tconsole.log('stream has finished');\n});\n\neos(duplexStream, function(err) {\n\tif (err) return console.log('stream had an error or closed early');\n\tconsole.log('stream has ended and finished');\n});\n\neos(duplexStream, {readable:false}, function(err) {\n\tif (err) return console.log('stream had an error or closed early');\n\tconsole.log('stream has ended but might still be writable');\n});\n\neos(duplexStream, {writable:false}, function(err) {\n\tif (err) return console.log('stream had an error or closed early');\n\tconsole.log('stream has ended but might still be readable');\n});\n\neos(readableStream, {error:false}, function(err) {\n\t// do not treat emit('error', err) as a end-of-stream\n});\n```\n\n## License\n\nMIT","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2014-09-07T18:21:10.694Z","created":"2013-11-26T23:28:55.601Z","0.1.0":"2013-11-26T23:28:59.564Z","0.1.1":"2013-11-27T01:05:45.555Z","0.1.2":"2013-11-27T01:16:00.613Z","0.1.3":"2013-12-19T10:41:25.227Z","0.1.4":"2014-02-18T10:17:56.792Z","0.1.5":"2014-06-29T07:03:54.107Z","1.0.0":"2014-07-21T11:04:32.385Z","1.1.0":"2014-09-07T18:21:10.694Z"},"repository":{"type":"git","url":"git://github.com/mafintosh/end-of-stream.git"},"readmeFilename":"README.md","users":{"feross":true,"timhudson":true,"forivall":true,"substack":true,"nichoth":true,"burl.bn":true,"incendiary":true,"stringparser":true,"klyngbaek":true,"amobiz":true},"homepage":"https://github.com/mafintosh/end-of-stream","keywords":["stream","streams","callback","finish","close","end","wait"],"author":{"name":"Mathias Buus","email":"mathiasbuus@gmail.com"},"bugs":{"url":"https://github.com/mafintosh/end-of-stream/issues"},"license":"MIT","_attachments":{},"_etag":"\"AX799CECSKOM0NE81UEPPRYXW\""}