{"versions":{"0.0.0":{"name":"fetch-event-stream","version":"0.0.0","description":"Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.0.0","gitHead":"eca958107713824aa593586474a7df47406d9e76","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-c9dArY1ZrPoEq+qLbYNLqi2fCPKist5hSM8T8rclkkkPV4nmoMBr91UH0ZXpbAln/E616RRiHYtOcDbD+ijnnQ==","shasum":"a45e92ed3a2600b968181592d22c13e3053f05eb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.0.0.tgz","fileCount":17,"unpackedSize":19414,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGPVDaM2Q1ja1eZxT2Ik1ovtYKElY82l67/6RLd7BkNTAiEAqk3pG/E+7LSE7c+Vivf1fHyFArw3OPSiAn8735hjp0g="}],"size":4921},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.0.0_1711140168265_0.05379259482838661"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-22T20:42:48.415Z","publish_time":1711140168415,"_source_registry_name":"default","contributors":[]},"0.0.1":{"name":"fetch-event-stream","version":"0.0.1","description":"Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.0.1","gitHead":"63e6d26b0d66fc621f06d371a20e2c9795b717a3","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-dconAyPKDOiP8BisT3WwuXheumt9ef2qq4ZmHSHJvsNxuZDcnn7EC2g7BFng2EHK2R/YdS1voMI/fgfEEcv+kA==","shasum":"14f324a3cbda2a66dafe146b999dc7b75acdb401","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.0.1.tgz","fileCount":17,"unpackedSize":25769,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkhf69w2EvcATghhNwluDZaQrrD9b78vZy6QwmB1qwogIhAN3DI5P8o0/d5DG/DDtFuv5cSmOgh81oqfj1OlF5sdrQ"}],"size":5847},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.0.1_1711148155664_0.020684977238845548"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-22T22:55:55.860Z","publish_time":1711148155860,"_source_registry_name":"default","contributors":[]},"0.0.2":{"name":"fetch-event-stream","version":"0.0.2","description":"Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.0.2","gitHead":"28a6a09a7b8be8b9d270e56cd5a227232392f3da","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-vNy6fynKs3P4hxgQuAjC//NLkSHmO9+q0cRpEIgvXW8whv0/o9SzibaDY6B3EwSaGzJiGhkesXt5d43zWxiF0g==","shasum":"65099c88b02ad56eb4bd679c0566ec1635a3de7f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.0.2.tgz","fileCount":17,"unpackedSize":26131,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID3bo/f1Sw0rRI52EgMw+O/Tux9s2KHMtQD6dHjORGMGAiBWAR12my4g/JrMhpsWSrqgNx4///QWyUleobH8qPwVEA=="}],"size":5975},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.0.2_1711327502270_0.587615966529198"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-25T00:45:02.480Z","publish_time":1711327502480,"_source_registry_name":"default","contributors":[]},"0.1.0":{"name":"fetch-event-stream","version":"0.1.0","description":"A tiny (745b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.1.0","gitHead":"09fdcfc27fc59a6a889ff59a198f7809c4bf0b2f","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-4UAV5/zN0vd2Uy7d9/dHLIpzZNI4mJZbAnOo9ensIZG2Z3JYQd4o3aCi1okfx7N06yC1Hr6gb16aCflyEV3Sxg==","shasum":"e723e7165bcdf259f1d8e5fed2c0e37356f8da4a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.1.0.tgz","fileCount":17,"unpackedSize":26740,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDNFI+30dwwnENWg1/0u84RpZ24eh/NLrJBTt+ZXzbLbAiAC3FDab9HTaad5z9VBthN6iUK6vAxsgCCJbUeYkRCQag=="}],"size":6021},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.1.0_1711389965374_0.6463668141503749"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-25T18:06:05.495Z","publish_time":1711389965495,"_source_registry_name":"default","contributors":[]},"0.1.1":{"name":"fetch-event-stream","version":"0.1.1","description":"A tiny (745b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.1.1","gitHead":"7300343ceb3f5db16f407126dacdd52c20dc45b1","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-eQZGuAWjeOvWXGhrUzc5FZE6Tk7DbkiQPlM4HL1XDdoOMkZUFFm5VCIhFc5NauBwgdwu4xjEip8bW6NyDN2zQA==","shasum":"f8db75898d1d801fc135b9527f5f790606257cc3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.1.1.tgz","fileCount":17,"unpackedSize":26740,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHG5NjV2ltaMAZ9Cph2IcFDHlJB5Jl4pwnJMqRUjLJKsAiBi4q3qoU3N9yVEPnRiYM/6aOZ+aX03+Wygg6thopfdiw=="}],"size":6021},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.1.1_1711395830867_0.7354287991078321"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-25T19:43:51.074Z","publish_time":1711395831074,"_source_registry_name":"default","contributors":[]},"0.1.2":{"name":"fetch-event-stream","version":"0.1.2","description":"A tiny (745b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.1.2","gitHead":"f2a3d0a162b51e155335bea9812ef952b6ff58a0","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-79VZetPkF9HanRKfFj3me53k7cfiZq7b8AKobPwpDuHmmfVaqZr+dcKSU2ZDqsb3KQdjeJtyi6juJ3UQ8C8n+Q==","shasum":"df55712dc06d9dafd4778d2b199c995362c94adc","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.1.2.tgz","fileCount":17,"unpackedSize":26747,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAd6Dut9X/SsT65dNaic0clCSPA7c9Ey1aDXFExnZ74eAiA2aSj22W/HKq34Pjev4A1A4fPUYjziwvOpaAxL9bffEQ=="}],"size":6023},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.1.2_1711423082552_0.5246203049808682"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-26T03:18:02.746Z","publish_time":1711423082746,"_source_registry_name":"default","contributors":[]},"0.1.3":{"name":"fetch-event-stream","version":"0.1.3","description":"A tiny (745b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.1.3","gitHead":"2fcf5dd5f9c589db6c55049a817cf5e91a87a917","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-i9BS3o03WShe3XQwBRg4VT4Z+0WCjXsDLjxp2XiBQEOEJtKJOpxKe9toIEqOMPYVa1wfcLk38Xcd6Rvxh8/BiQ==","shasum":"6866e2776a9b166c5063987cee845c5c3fdc0d41","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.1.3.tgz","fileCount":56,"unpackedSize":44215,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgqx1quttuHBRuFYOY3dZoU7vYaCwFI/CfD7aJBP5yogIgO9fK9upFUKz50UPZHW8U4ppRELihfooqqQG8SvOIEEU="}],"size":11041},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.1.3_1711572027133_0.9804257589598888"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-27T20:40:27.296Z","publish_time":1711572027296,"_source_registry_name":"default","contributors":[]},"0.1.4":{"name":"fetch-event-stream","version":"0.1.4","description":"A tiny (774b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.1.4","gitHead":"3dea867bd9816e7d0d50c4e0c81131a89ca6f998","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.11.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-oqOgZVUjlXnrU/+GubOtQ9GnY06krq2vebkxyDTlQ5tIhViPIhFje5Sf8RVY7WJqctQtrDgTcgu93sR45alRkw==","shasum":"fc2efeebd6314460545688bce9689d6773f29d05","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.1.4.tgz","fileCount":56,"unpackedSize":44656,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBx7238VWCuEzlZwdXN/3bw8KcCy1oPSUIidn81yyWY8AiAUqI9Xse/8aFw9ySoh7U/ztyIjfvZW8cvFTSwy6jQOqw=="}],"size":11135},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.1.4_1711750956360_0.323549018662185"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-29T22:22:36.598Z","publish_time":1711750956598,"_source_registry_name":"default","contributors":[]},"0.1.5":{"name":"fetch-event-stream","version":"0.1.5","description":"A tiny (736b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.1.5","gitHead":"a82cf4658d5d3880f563f90d70d883602d32ee2c","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-V1PWovkspxQfssq/NnxoEyQo1DV+MRK/laPuPblIZmSjMN8P5u46OhlFQznSr9p/t0Sp8Uc6SbM3yCMfr0KU8g==","shasum":"ffc5a8f57a040e3eb78d9f990632c2a3fd253c02","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.1.5.tgz","fileCount":56,"unpackedSize":44656,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKfzNb4pEdc6bzboUnMFQT83MuQ71LGan0FGGouaf4VgIhAMU4Kdl97mP3I2tMDXnFnMrrRy/rIsLAZYYn1bM6FkXD"}],"size":11144},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fetch-event-stream_0.1.5_1711777662986_0.34935374094317995"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-03-30T05:47:43.163Z","publish_time":1711777663163,"_source_registry_name":"default","contributors":[]},"0.1.6":{"name":"fetch-event-stream","version":"0.1.6","description":"A tiny (741b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API","keywords":["SSE","Server-Sent Events","Events","EventSource"],"author":{"name":"Luke Edwards","email":"luke@lukeed.com","url":"https://lukeed.com"},"repository":{"type":"git","url":"git+https://github.com/lukeed/fetch-event-stream.git"},"license":"MIT","main":"./script/mod.js","module":"./esm/mod.js","types":"./types/mod.d.ts","exports":{".":{"import":{"types":"./types/mod.d.ts","default":"./esm/mod.js"},"require":{"types":"./types/mod.d.ts","default":"./script/mod.js"}}},"scripts":{"test":"node test_runner.js"},"devDependencies":{"@types/node":"^20.9.0","picocolors":"^1.0.0","@deno/shim-deno":"~0.18.0"},"_id":"fetch-event-stream@0.1.6","gitHead":"d8584a0851054e6b630fa160740ed70bffcd566c","bugs":{"url":"https://github.com/lukeed/fetch-event-stream/issues"},"homepage":"https://github.com/lukeed/fetch-event-stream#readme","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-GREtJ5HNikdU2AXtZ6E/5bk+aslMU6ie5mPG6H9nvsdDkkHQ6m5lHwmmmDTOBexok9hApQ7EprsXCdmz9ZC68w==","shasum":"5013b504cfb96ea47532710b9bc555b6e991a4f3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fetch-event-stream/-/fetch-event-stream-0.1.6.tgz","fileCount":56,"unpackedSize":44482,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/fetch-event-stream@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIDd3s3j1BGZRdAADkUoMzcbU7OMwIeAUyGVF1xAsIGlkAiEA4IrRiK0R8KfRtr6cStNU/WrwCEq0Xn4UOdwkDHOkHvw="}],"size":11115},"_npmUser":{"name":"anonymous","email":"luke@lukeed.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"luke@lukeed.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fetch-event-stream_0.1.6_1761320271471_0.8664706741382942"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-24T15:37:51.652Z","publish_time":1761320271652,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.6"},"name":"fetch-event-stream","time":{"created":"2023-06-13T14:39:11.868Z","modified":"2025-10-24T15:38:03.457Z","0.0.0":"2024-03-22T20:42:48.415Z","0.0.1":"2024-03-22T22:55:55.860Z","0.0.2":"2024-03-25T00:45:02.480Z","0.1.0":"2024-03-25T18:06:05.495Z","0.1.1":"2024-03-25T19:43:51.074Z","0.1.2":"2024-03-26T03:18:02.746Z","0.1.3":"2024-03-27T20:40:27.296Z","0.1.4":"2024-03-29T22:22:36.598Z","0.1.5":"2024-03-30T05:47:43.163Z","0.1.6":"2025-10-24T15:37:51.652Z"},"readme":"<!-- deno-fmt-ignore-file -->\n# fetch-event-stream [![CI](https://github.com/lukeed/fetch-event-stream/workflows/CI/badge.svg)](https://github.com/lukeed/fetch-event-stream/actions?query=workflow%3ACI) [![licenses](https://licenses.dev/b/npm/fetch-event-stream)](https://licenses.dev/npm/fetch-event-stream)\n\n> A tiny (741b) utility for Server Sent Event (SSE) streaming via `fetch` and Web Streams API\n\n* Allows any HTTP method\n* Built with native [Web Streams API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API)\n* Works with browser, Node.js, Cloudflare Workers, Deno, and Bun\n* Supports WebWorker or Service Worker environments\n* Accepts [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) for cancellable streams\n\n***Why?***\n\n1. Even though [`EventSource`](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) exists in browsers (and Deno!), it only sends `GET` requests and does not allow for custom HTTP headers. Most APIs (eg, Anthropic, OpenAI) require `POST` requests with an `Authorization` header and a JSON payload.\n\n2. Web Streams are new, not very well understood, and are sometimes confused with NodeJS Streams. Because of this, many other libraries embed large polyfills or manually reconstruct desired behaviors through non-standard approaches. These polyfills are generally [not necessary](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API#browser_compatibility) anymore, but still make large impacts on SDK size; for example, [`openai`](https://bundlejs.com/?q=openai%404.29.2) is `17kB` (gzip).\n\n## Install\n\n> Available on [JSR](https://jsr.io/@lukeed/fetch-event-stream), [npm](https://www.npmjs.com/package/fetch-event-stream), and [deno.land](https://deno.land/x/fetch_event_stream)\n\n```\n$ npm install --save fetch-event-stream\n```\n\n\n## Usage\n\n```ts\nimport { events, stream } from 'fetch-event-stream';\n// or\nimport { events, stream } from 'https://deno.land/x/fetch_event_stream';\n```\n\n\n## API\n\n### events(res, signal?)\n\nConvert a `Response` body containing Server Sent Events (SSE) into an Async Iterator that yields\n`ServerSentEventMessage` objects.\n\n_**Example**_\n\n```js\n// Optional\nlet abort = new AbortController();\n\n// Manually fetch a Response\nlet res = await fetch('https://...', {\n  method: 'POST',\n  signal: abort.signal,\n  headers: {\n    'api-key': 'token <value>',\n    'content-type': 'application/json',\n  },\n  body: JSON.stringify({\n    stream: true, // <- hypothetical\n    // ...\n  }),\n});\n\nif (res.ok) {\n  let stream = events(res, abort.signal);\n  for await (let event of stream) {\n    console.log('<<', event.data);\n  }\n}\n```\n\n#### res\nType: `Response`\n\nThe `Response` to consume. Must contain a body that follows the Server-Sent Event message protocol.\n\n#### signal\nType: `AbortSignal`\n\nOptional. Use the `AbortController` interface to stop iteration. The stream will be destroyed.\n\n\n### stream(input, init?)\n\nConvenience function that will `fetch` with the given arguments and, if ok, will return the [`events`](#eventsres-signal) async iterator.\n\n> **Note:** Accepts the same arguments as `fetch` but **does not** return a `Response`!\n\n> **Important:** Will `throw` the `Response` if received non-`2xx` status code.\n\n_**Example**_\n\n```js\n// NOTE: throws `Response` if not 2xx status\nlet events = await stream('https://api.openai.com/...', {\n  method: 'POST',\n  headers: {\n    'Authorization': 'Bearer <token>',\n    'Content-Type': 'application/json',\n  },\n  body: JSON.stringify({\n    stream: true,\n    // ...\n  }),\n});\n\nfor await (let event of events) {\n  console.log('<<', JSON.parse(event.data));\n}\n```\n\n#### input\nType: `Request | URL | string`\n\nRefer to [`fetch#resource`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#resource) documentation.\n\n#### init\nType: `RequestInit`\n\nRefer to [`fetch#options`](https://developer.mozilla.org/en-US/docs/Web/API/fetch#options) documentation.\n\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)","users":{}}