{"_id":"event-source-stream","_rev":"18-6950efdcd4355e89eec3c92a812356bc","name":"event-source-stream","description":"EventSource implemented in node as a readable stream","dist-tags":{"latest":"1.6.0"},"versions":{"1.0.0":{"name":"event-source-stream","version":"1.0.0","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"split2":"^0.1.2","request":"^2.36.0"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","_id":"event-source-stream@1.0.0","_shasum":"d3607070dfd6f5ba2c7a45fe0a81e5c0dbcbde9c","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"d3607070dfd6f5ba2c7a45fe0a81e5c0dbcbde9c","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.0.0.tgz","integrity":"sha512-pvi4G1U0Cu6zUMP4BvYwwovBeAouutG5LUrKBZ6+pHCeDSa8/RIhUNa8Nl4r9inmJ6V2ufx1lsE4Y8wuaIV2HQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA7sF5oKWPeUFQw7Xa9V32UBOhr0wBaBC9DytqJZLgstAiEA//ci5Y1YxnMLaEAEgRZqKr6fOHhSHrILPuEwYn2hOLA="}]},"directories":{}},"1.1.0":{"name":"event-source-stream","version":"1.1.0","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"split2":"^0.1.2","request":"^2.36.0"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","_id":"event-source-stream@1.1.0","_shasum":"372831e88ab209b0f09eeeb77fae4922d569ee7a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"372831e88ab209b0f09eeeb77fae4922d569ee7a","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.1.0.tgz","integrity":"sha512-72kM2h06RAnwWtqcUaydP9UeVqCLEhUGoOFEkvC5D97xWuTkDEhAKYOMLZEmb4tCzTEhifZR8UJ5tEb6qJQagA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFZAtA6xpgk/U5QPpaoHjrQ6SwHfrQGGTVbHYH1PREc9AiAsJDjU1f59DbJctGdJ+NVpYWpLWZbxYNjcPMkBHMk55w=="}]},"directories":{}},"1.1.1":{"name":"event-source-stream","version":"1.1.1","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"split2":"^0.1.2","request":"^2.36.0"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"15ea6ae2b3df7b63abb725a7bcb4702ef92d8ef1","_id":"event-source-stream@1.1.1","_shasum":"692f5d03911eba4af3ee9c3f48d5174f0119aaab","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"692f5d03911eba4af3ee9c3f48d5174f0119aaab","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.1.1.tgz","integrity":"sha512-/+ZGsslPKIdz7hR6KW8DXw7Jwg4tOMFS8iohOcrkFYhk1WyQhgHJHbxMRAqMffP4lcoRGWQ51k6rrQpDVXmuaw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLwZEG/CKlR7bth8JQaEWG3ZIMQEnf5p0EyT3Zf9dGRAiAIGOdRdB+12cghayNuwxtY4Juf02/PwqCsIA11aAtTUA=="}]},"directories":{}},"1.2.0":{"name":"event-source-stream","version":"1.2.0","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"split2":"^0.1.2","request":"^2.36.0"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"b2ea75d652e98c49a4a09a6186930d86c2683f26","_id":"event-source-stream@1.2.0","_shasum":"e60909b00a2ed3bd674de4dbdb91c29fd528b816","_from":".","_npmVersion":"2.7.5","_nodeVersion":"1.6.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"e60909b00a2ed3bd674de4dbdb91c29fd528b816","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.2.0.tgz","integrity":"sha512-Xex6fiI9Bd8qAhVrWGDAJpnxLUXgOkjOFisGQYHvmQGCAsFsPN2DMzItPLJigu95JoCq9psv2zWVB63cXx+n2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAENgBVoMUKnJfK5tPOhwSsVqYDtH7t9jIpi0a9UHKTGAiEAlnU8ih92YxPvlq5xYu1A5u96U2ftKPgDuB20s38Gf1I="}]},"directories":{}},"1.3.0":{"name":"event-source-stream","version":"1.3.0","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"split2":"^0.1.2","request":"^2.36.0"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"03e59a7297c3109062abe509f7d1c72c14256758","_id":"event-source-stream@1.3.0","_shasum":"cea5788a0158af172dfebabcf3bd0feeb9404622","_from":".","_npmVersion":"2.7.5","_nodeVersion":"1.6.4","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"cea5788a0158af172dfebabcf3bd0feeb9404622","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.3.0.tgz","integrity":"sha512-EdcbmNOBJPlvNf0pLOqM/vTbVe3M+44WQYb3d80GK1WHrSAKOL2cDMLSU5njmdVwPO5dbkdGvM7qSK8aNFpuJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAO3bkiWovGcH3QmwFlhzYXqpJV9pAWCBxv6omnZ8sIPAiB5NgS1JPB1kLGTUZArPOv26Qu8/fnhYtYR4eNceSlIeA=="}]},"directories":{}},"1.3.1":{"name":"event-source-stream","version":"1.3.1","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"once":"^1.3.1","request":"^2.36.0","split2":"^0.1.2"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream.git"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"ebcf4b3ce26f854ba1617aca20a0e8535b67d3d0","_id":"event-source-stream@1.3.1","_shasum":"9fa0e383cb6c73e5cff89fbfd357bd5d5cd95fec","_from":".","_npmVersion":"2.8.4","_nodeVersion":"1.8.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"9fa0e383cb6c73e5cff89fbfd357bd5d5cd95fec","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.3.1.tgz","integrity":"sha512-EvZ07uZLVCzchZOiwj6i3WPM6upu1ZhAj+9ofMe2TQD27OxvejcHJAXmURn+Q3RCJJm8n+QAyZw9mWzpyxVFuA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEC7lvqXhSP5FJ8O/AxQ2gJsGZRvIMwGHC5H+RKBGTDgIhAMjaVEXC6tJlw/9ECK/AQHONULndURl4eXA9PQ3G61nm"}]},"directories":{}},"1.3.2":{"name":"event-source-stream","version":"1.3.2","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"once":"^1.3.1","request":"^2.36.0","split2":"^0.1.2"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream.git"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"20af1a7608b9253af8d51a6cd3a6f90111ffbea2","_id":"event-source-stream@1.3.2","_shasum":"8fc967c37957da1e01cdadf148ccdb099a71715d","_from":".","_npmVersion":"2.9.0","_nodeVersion":"2.0.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"dist":{"shasum":"8fc967c37957da1e01cdadf148ccdb099a71715d","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.3.2.tgz","integrity":"sha512-ztO11ANxN4BZDQv6MYdrhTFQcqc8xxvGYyYMIuMY+xMFw2qyM1zWGZKeop9OxxgLb7s18mcIM9X/rBHSFwyijQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDax8FhSjAqWe0tMzvaEwtOs01o1SXTZa0EEk72BzrpIAIhAMmWAHuRSUNqx+32Xpuhr5FbB/LWvpGIg4ZKiE+l0ovN"}]},"directories":{}},"1.4.0":{"name":"event-source-stream","version":"1.4.0","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"once":"^1.3.1","request":"^2.36.0","split2":"^0.1.2"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"4ff26b0c55035a5d8c184b2aa4c2a595bac2e612","_id":"event-source-stream@1.4.0","_shasum":"fbcbd6d7d8781d607524db92bc22aada04f4e83d","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"fbcbd6d7d8781d607524db92bc22aada04f4e83d","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.4.0.tgz","integrity":"sha512-MXYAG+mtXw9URIu5/a4xQVR0xJmxL1XMSsvm3l4TZqWv6NTrEpTd/14ZSi+8vHU89FUbL2LAW5GBTtDx97hLAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFd5Dv84cgEn229WMeiDBjT9m7Mag11YVvYtsdWejVp+AiEAlNnIwVsKoyPEIUTTNAfAySlTUhurx2Q4ch3YY8VZ8kw="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/event-source-stream-1.4.0.tgz_1455777191501_0.1042014118283987"},"directories":{}},"1.5.0":{"name":"event-source-stream","version":"1.5.0","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"once":"^1.3.1","request":"^2.36.0","split2":"^0.1.2"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"9ac3d7c1613b3670c28da75a50f6225f0f963bd3","_id":"event-source-stream@1.5.0","_shasum":"70fe7e42d03e5485b2f2ce404390f7c8a640edda","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"shasum":"70fe7e42d03e5485b2f2ce404390f7c8a640edda","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.5.0.tgz","integrity":"sha512-wzUJUOn7sjdtrG1Wf8ksaN/ljkaKtgKUoZQFPEG47Sgqk0C/3PystIGCpLl8oPCEPHCGDzSB0bcvJWVjjiScIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF7UJI8Zz00KC3zKUQZFutZZxTuMXp6wbT0MbwCJIoCEAiEA1kRYgWVwqs0r6ajVJ63rMlYBGRqZgy217lwMd3bVf0c="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/event-source-stream-1.5.0.tgz_1457991883891_0.7278385213576257"},"directories":{}},"1.6.0":{"name":"event-source-stream","version":"1.6.0","description":"EventSource implemented in node as a readable stream","main":"index.js","dependencies":{"once":"^1.3.1","readable-stream":"^2.2.2","request":"^2.36.0","split2":"^0.1.2"},"devDependencies":{"tape":"^2.13.3"},"scripts":{"test":"tape test.js"},"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream.git"},"keywords":["event","source","stream","client","readable","html5"],"author":{"name":"Mathias Buus"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"homepage":"https://github.com/mafintosh/event-source-stream","browser":"browser.js","gitHead":"5d6c3d44bd3ad7000e2809d6390660c70d635a95","_id":"event-source-stream@1.6.0","_npmVersion":"5.6.0","_nodeVersion":"10.2.1","_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"dist":{"integrity":"sha512-8IUJAGKSIQAwJegCZ3xhn+9FSKFlPcFejW5/UCkGXBqKlJlTm/QI9W3dkFmzWbfCt2kNPcQYO4pechKUoUIIQg==","shasum":"89d0938dbf8adc70d69736634d0f41cc489f311a","tarball":"https://registry.npmjs.org/event-source-stream/-/event-source-stream-1.6.0.tgz","fileCount":8,"unpackedSize":7275,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDY0yCRA9TVsSAnZWagAACSwQAIGI/sb8yLdfkUgvcXyl\nxzqPwz2GwR6jcW5QBUK8rWqYWSLGrj04M9u0LN1nW7Zs6En3zes0EX8YdHLb\nOkoszGTP7Ry8Yl2HNjp9VwTyJ4Q+KeR4Em4Uhpyv12OZK+rhFXgwFAXKiCN6\nQm7iaj+whUpRNl94VQi/XYWAaBwqTDtWe6JcE7RBj6e/0yXg9GYfE5onDJem\nL2aLHhDsNAUtQ1wj4TGhwQcyX3ZJvVLd6o8f3CuYyWvIdZtE1ieLFWc52Z9C\nDNhZaXh2EE8AmUoypWackG/KNwaXqLGLvFOdPlR8SqkjZ1OYB2mus5TBNDka\nBR06iExalfgdl61drOjOv/0HqxCtRqaluImv/ZJvVjXswe8koN7BC14FrUpr\nxxaUvgEY13MA2oJDIRSeNYuxg5Lxnlfr3h1d8tUM7RSALN96gAhsfEtrRUt2\nI2BzH9QNDKyLSkU3VzDHYUwKnCKMUuW/Jj15lTC8voUAMsgDrc1XtpwlqWW9\nS+NJILvhouT8HSCcTS+B7H5hstqUi1OyTmDniL/RRI59uTzzZgU3oppkmci/\nxDsYjEfNN+sIYDBZAvMcV+0/pbAKeqQgv+cTx4axOPCieqZgpldlsg4csiQz\ngEUv5S9r3OJmxA0bD/mj+BgaSrU30hkx5dnzOxjK6mPYaS4q20kGkMBs593Y\nQb3B\r\n=DV+q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBc/7hXSfIL6DPn2rLcS7shhiIx+LrBH7IzlHirFEsD6AiBYCZxCASVTQaMXCpxoCmubYpUhZsOQLGf5o3QyWfKSyg=="}]},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/event-source-stream_1.6.0_1527614769559_0.12773523722124902"},"_hasShrinkwrap":false}},"readme":"# event-source-stream\n\n[EventSource](https://developer.mozilla.org/en-US/docs/Server-sent_events/Using_server-sent_events) implemented in node as a readable stream\n\n``` js\nnpm install event-source-stream\n```\n\n[![build status](http://img.shields.io/travis/mafintosh/event-source-stream.svg?style=flat)](http://travis-ci.org/mafintosh/event-source-stream)\n![dat](http://img.shields.io/badge/Development%20sponsored%20by-dat-green.svg?style=flat)\n\n## Usage\n\n``` js\nvar ess = require('event-source-stream')\n\ness('http://server-sent-events-demo.herokuapp.com/update')\n  .on('data', function(data) {\n    console.log('received event:', data)\n  })\n```\n\nPer default it will retry after 3s when the connection terminates. Change this by setting the `retry` option\n\n``` js\n// no retries\ness('http://server-sent-events-demo.herokuapp.com/update', {retry:false}).pipe(...)\n\n// retry after 10s\ness('http://server-sent-events-demo.herokuapp.com/update', {retry:10000}).pipe(...)\n```\n\n## Browser support\n\nIt also works in the browser using browserify\n\n``` js\nvar ess = require('event-source-stream') // will use EventSource behind the scene\n\ness('http://server-sent-events-demo.herokuapp.com/update')\n  .on('data', function(data) {\n    console.log('recevied event in the browser', data)\n  })\n```\n\n## License\n\nMIT","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"time":{"modified":"2022-06-17T21:28:59.356Z","created":"2014-06-17T22:53:45.107Z","1.0.0":"2014-06-17T22:53:45.107Z","1.1.0":"2014-06-17T23:22:08.668Z","1.1.1":"2014-10-23T11:25:44.471Z","1.2.0":"2015-04-16T21:29:39.980Z","1.3.0":"2015-04-26T20:17:50.544Z","1.3.1":"2015-05-02T04:01:48.664Z","1.3.2":"2015-05-08T22:57:27.371Z","1.4.0":"2016-02-18T06:33:15.202Z","1.5.0":"2016-03-14T21:44:44.363Z","1.6.0":"2018-05-29T17:26:09.633Z"},"homepage":"https://github.com/mafintosh/event-source-stream","keywords":["event","source","stream","client","readable","html5"],"repository":{"type":"git","url":"git://github.com/mafintosh/event-source-stream.git"},"author":{"name":"Mathias Buus"},"bugs":{"url":"https://github.com/mafintosh/event-source-stream/issues"},"license":"MIT","readmeFilename":"README.md","users":{"wenbing":true,"akiva":true}}