{"_id":"eventsource-parser","_rev":"4103630","name":"eventsource-parser","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","dist-tags":{"beta":"3.0.0-beta.0","latest":"3.0.6"},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"time":{"modified":"2026-01-11T18:47:07.000Z","created":"2022-09-30T22:25:03.962Z","3.0.6":"2025-08-29T16:19:18.943Z","3.0.5":"2025-08-18T21:47:18.229Z","3.0.3":"2025-06-25T19:47:56.330Z","3.0.2":"2025-05-14T18:13:24.771Z","3.0.1":"2025-03-27T05:14:27.357Z","3.0.0":"2024-10-19T22:09:19.682Z","3.0.0-beta.0":"2024-10-19T21:45:03.735Z","2.0.1":"2024-08-07T15:35:11.828Z","2.0.0":"2024-08-07T15:21:14.793Z","1.1.2":"2024-02-13T05:25:36.905Z","1.1.1":"2023-09-20T10:15:06.457Z","1.1.0":"2023-09-20T10:07:57.349Z","1.0.0":"2023-03-23T19:29:18.742Z","0.1.0":"2023-01-28T21:44:47.756Z","0.0.5":"2022-10-03T00:25:36.805Z","0.0.4":"2022-10-03T00:22:40.240Z","0.0.3":"2022-09-30T22:26:02.901Z","0.0.2":"2022-09-30T22:25:03.962Z"},"users":{},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"versions":{"3.0.6":{"name":"eventsource-parser","version":"3.0.6","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=18.0.0"},"browserslist":["node >= 20","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node","test:bun":"bun test","test:deno":"deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest","test:node":"vitest --reporter=verbose"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^8.0.0","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^20.19.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","eventsource-encoder":"^1.0.1","prettier":"^3.5.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^6.0.3","semantic-release":"^24.2.3","typescript":"^5.8.3","vitest":"^3.1.3"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@3.0.6","gitHead":"244d9f54e7fa728a6544a8996cf5f3740108cfdb","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"shasum":"292e165e34cacbc936c3c92719ef326d4aeb4e90","size":13838,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-3.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-3.0.6.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eventsource-parser_3.0.6_1756484358728_0.5970278255303758"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-29T16:19:18.943Z","publish_time":1756484358943,"_source_registry_name":"default","_cnpm_publish_time":1756484358943},"3.0.5":{"name":"eventsource-parser","version":"3.0.5","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=20.0.0"},"browserslist":["node >= 20","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node","test:bun":"bun test","test:deno":"deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest","test:node":"vitest --reporter=verbose"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^8.0.0","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^20.19.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","eventsource-encoder":"^1.0.1","prettier":"^3.5.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^6.0.3","semantic-release":"^24.2.3","typescript":"^5.8.3","vitest":"^3.1.3"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@3.0.5","gitHead":"3f72c2615bb898bf26d509f78ce125836f45906c","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"shasum":"1346314851df0a3bd72450339f58bd9bc8cb77df","size":13838,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-3.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-3.0.5.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eventsource-parser_3.0.5_1755553638022_0.9455451639008248"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-08-18T21:47:18.229Z","publish_time":1755553638229,"_source_registry_name":"default","_cnpm_publish_time":1755553638229},"3.0.3":{"name":"eventsource-parser","version":"3.0.3","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=20.0.0"},"browserslist":["node >= 20","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node","test:bun":"bun test","test:deno":"deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest","test:node":"vitest --reporter=verbose"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^7.2.2","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^18.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","eventsource-encoder":"^1.0.1","prettier":"^3.5.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^5.12.0","semantic-release":"^24.2.3","typescript":"^5.8.3","vitest":"^3.1.3"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@3.0.3","gitHead":"5f77263118d9200961b5947c16884cadbb8f2c6e","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"shasum":"e9af1d40b77e6268cdcbc767321e8b9f066adea8","size":13675,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-3.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-3.0.3.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com","actor":{"name":"rexxars","email":"espen@hovlandsdal.com","type":"user"}},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eventsource-parser_3.0.3_1750880876126_0.03386991773159731"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-25T19:47:56.330Z","publish_time":1750880876330,"_source_registry_name":"default","_cnpm_publish_time":1750880876330},"3.0.2":{"name":"eventsource-parser","version":"3.0.2","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=18.0.0"},"browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node","test:bun":"bun test","test:deno":"deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest","test:node":"vitest --reporter=verbose"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^7.2.2","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^18.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","eventsource-encoder":"^1.0.1","prettier":"^3.5.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^5.12.0","semantic-release":"^24.2.3","typescript":"^5.8.3","vitest":"^3.1.3"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@3.0.2","gitHead":"e1b1f5694ff2fb87af946ac72325314490e487ff","_nodeVersion":"22.15.0","_npmVersion":"10.9.2","dist":{"shasum":"0fea1abd26eca8201099ff5212f6c4e7ca2fd5d3","size":57496,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-3.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-3.0.2.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eventsource-parser_3.0.2_1747246404576_0.8951768696345774"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-14T18:13:24.771Z","publish_time":1747246404771,"_source_registry_name":"default","_cnpm_publish_time":1747246404771},"3.0.1":{"name":"eventsource-parser","version":"3.0.1","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=18.0.0"},"browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node","test:bun":"bun test","test:deno":"deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest","test:node":"vitest --reporter=verbose"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^6.11.4","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^18.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","eventsource-encoder":"^1.0.0","prettier":"^3.3.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^5.12.0","semantic-release":"^24.0.0","typescript":"^5.5.4","vitest":"^2.0.5"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@3.0.1","gitHead":"25417c04ab286f418287359a7d87c4ceb49c7e89","_nodeVersion":"22.14.0","_npmVersion":"10.9.0","dist":{"shasum":"5e358dba9a55ba64ca90da883c4ca35bd82467bd","size":58169,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-3.0.1.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eventsource-parser_3.0.1_1743052467148_0.31346965432533325"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-27T05:14:27.357Z","publish_time":1743052467357,"_source_registry_name":"default","_cnpm_publish_time":1743052467357},"3.0.0":{"name":"eventsource-parser","version":"3.0.0","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=18.0.0"},"browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node","test:bun":"bun test","test:deno":"deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest","test:node":"vitest --reporter=verbose"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^6.11.4","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^18.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","eventsource-encoder":"^1.0.0","prettier":"^3.3.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^5.12.0","semantic-release":"^24.0.0","typescript":"^5.5.4","vitest":"^2.0.5"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@3.0.0","gitHead":"07d564bdf6e5ae32457030881179ff2f6408c93e","_nodeVersion":"20.18.0","_npmVersion":"10.9.0","dist":{"shasum":"9303e303ef807d279ee210a17ce80f16300d9f57","size":57776,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-3.0.0.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_3.0.0_1729375759391_0.44151100049241365"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-19T22:09:19.682Z","publish_time":1729375759682,"_source_registry_name":"default","_cnpm_publish_time":1729375759682},"3.0.0-beta.0":{"name":"eventsource-parser","version":"3.0.0-beta.0","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=18.0.0"},"browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build","test":"npm run test:node","test:bun":"bun test","test:deno":"deno run --allow-write --allow-net --allow-run --allow-sys --allow-ffi --allow-env --allow-read npm:vitest","test:node":"vitest --reporter=verbose"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^6.11.4","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^18.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","eventsource-encoder":"^1.0.0","prettier":"^3.3.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^5.12.0","semantic-release":"^24.0.0","typescript":"^5.5.4","vitest":"^2.0.5"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@3.0.0-beta.0","readmeFilename":"README.md","gitHead":"d76aeb987fba80b3e4604905da2ab353de28e867","_nodeVersion":"20.16.0","_npmVersion":"10.8.3","dist":{"shasum":"27ced55179038ec7e8753a2cb297f1c506f59ae9","size":57749,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-3.0.0-beta.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-3.0.0-beta.0.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_3.0.0-beta.0_1729374303508_0.28617161863018814"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-10-19T21:45:03.735Z","publish_time":1729374303735,"_source_registry_name":"default","_cnpm_publish_time":1729374303735},"2.0.1":{"name":"eventsource-parser","version":"2.0.1","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","main":"./dist/index.cjs","exports":{".":{"source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"engines":{"node":">=18.0.0"},"browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"scripts":{"prebuild":"npm run clean","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","prepublishOnly":"npm run build","test":"vitest --reporter=verbose","posttest":"npm run lint"},"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"keywords":["sse","eventsource","server-sent-events"],"devDependencies":{"@sanity/pkg-utils":"^6.10.9","@sanity/semantic-release-preset":"^5.0.0","@types/node":"^18.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.51.0","eslint-config-prettier":"^9.1.0","eslint-config-sanity":"^7.1.2","prettier":"^3.3.3","rimraf":"^6.0.1","rollup-plugin-visualizer":"^5.12.0","semantic-release":"^24.0.0","typescript":"^5.5.4","vitest":"^2.0.5"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"_id":"eventsource-parser@2.0.1","gitHead":"2be0b7c96900dfecd845decb8d6fcfb26173ac95","_nodeVersion":"20.16.0","_npmVersion":"10.5.2","dist":{"shasum":"6464341d64de5bea9f31d8063dd312b616146c7a","size":52242,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-2.0.1.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_2.0.1_1723044911270_0.23657529325060245"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-07T15:35:11.828Z","publish_time":1723044911828,"_source_registry_name":"default","_cnpm_publish_time":1723044911828},"2.0.0":{"name":"eventsource-parser","version":"2.0.0","keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","_id":"eventsource-parser@2.0.0","maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"dist":{"shasum":"e795db119d96b52edba7e51801b777aedfc86d0c","size":52186,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-2.0.0.tgz"},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.esm.js","engines":{"node":">=18.0.0"},"exports":{".":{"import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js","require":"./dist/index.cjs"},"./stream":{"import":"./dist/stream.js","source":"./src/stream.ts","default":"./dist/stream.js","require":"./dist/stream.cjs"},"./package.json":"./package.json"},"gitHead":"1320e32913233ed08bca72b0925a29a0d3c2342d","scripts":{"lint":"eslint . && tsc --noEmit","test":"vitest --reporter=verbose","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","posttest":"npm run lint","prebuild":"npm run clean","prepublishOnly":"npm run build"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"prettier":{"semi":false,"printWidth":100,"singleQuote":true,"bracketSpacing":false},"repository":{"url":"git+ssh://git@github.com/rexxars/eventsource-parser.git","type":"git"},"_npmVersion":"10.5.2","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","directories":{},"sideEffects":false,"_nodeVersion":"20.16.0","browserslist":["node >= 18","chrome >= 71","safari >= 14.1","firefox >= 105","edge >= 79"],"eslintConfig":{"extends":["sanity","sanity/typescript","prettier"],"parserOptions":{"sourceType":"module","ecmaVersion":9,"ecmaFeatures":{"modules":true}},"ignorePatterns":["lib/**/"]},"typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.51.0","rimraf":"^6.0.1","vitest":"^2.0.5","prettier":"^3.3.3","typescript":"^5.5.4","@types/node":"^18.0.0","semantic-release":"^24.0.0","@sanity/pkg-utils":"^6.10.9","eslint-config-sanity":"^7.1.2","eslint-config-prettier":"^9.1.0","rollup-plugin-visualizer":"^5.12.0","@typescript-eslint/parser":"^7.0.0","@sanity/semantic-release-preset":"^5.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/eventsource-parser_2.0.0_1723044074572_0.1709213508829286","host":"s3://npm-registry-packages"},"_cnpmcore_publish_time":"2024-08-07T15:21:14.793Z","publish_time":1723044074793,"_source_registry_name":"default","_cnpm_publish_time":1723044074793},"1.1.2":{"name":"eventsource-parser","version":"1.1.2","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","keywords":["sse","eventsource","server-sent-events"],"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"types":"./dist/stream.d.ts","source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"main":"./dist/index.cjs","module":"./dist/index.js","source":"./src/index.ts","types":"./dist/index.d.ts","typesVersions":{"*":{"stream":["./dist/stream.d.ts"]}},"scripts":{"prebuild":"npm run clean","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","prepublishOnly":"npm run build","test":"vitest --reporter=verbose","posttest":"npm run lint"},"prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"devDependencies":{"@sanity/pkg-utils":"^2.4.9","@sanity/semantic-release-preset":"^4.0.2","@types/node":"^14.18.0","@typescript-eslint/eslint-plugin":"^6.7.2","@typescript-eslint/parser":"^6.7.2","eslint":"^8.49.0","eslint-config-prettier":"^9.0.0","eslint-config-sanity":"^6.0.0","prettier":"^3.0.3","rimraf":"^5.0.1","rollup-plugin-visualizer":"^5.9.2","semantic-release":"^21.0.0","typescript":"^5.2.2","vitest":"^0.34.4"},"engines":{"node":">=14.18"},"_id":"eventsource-parser@1.1.2","gitHead":"08ad1f7873931c36c9dda912e90558eb04c8295c","_nodeVersion":"20.11.0","_npmVersion":"9.8.1","dist":{"shasum":"ed6154a4e3dbe7cda9278e5e35d2ffc58b309f89","size":51249,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-1.1.2.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_1.1.2_1707801936715_0.9178037606496572"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-13T05:25:36.905Z","publish_time":1707801936905,"_source_registry_name":"default","_cnpm_publish_time":1707801936905},"1.1.1":{"name":"eventsource-parser","version":"1.1.1","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","keywords":["sse","eventsource","server-sent-events"],"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"types":"./dist/stream.d.ts","source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"main":"./dist/index.cjs","module":"./dist/index.js","source":"./src/index.ts","types":"./dist/index.d.ts","scripts":{"prebuild":"npm run clean","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","prepublishOnly":"npm run build","test":"vitest --reporter=verbose","posttest":"npm run lint"},"prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"devDependencies":{"@sanity/pkg-utils":"^2.4.9","@sanity/semantic-release-preset":"^4.0.2","@types/node":"^14.18.0","@typescript-eslint/eslint-plugin":"^6.7.2","@typescript-eslint/parser":"^6.7.2","eslint":"^8.49.0","eslint-config-prettier":"^9.0.0","eslint-config-sanity":"^6.0.0","prettier":"^3.0.3","rimraf":"^5.0.1","rollup-plugin-visualizer":"^5.9.2","semantic-release":"^21.0.0","typescript":"^5.2.2","vitest":"^0.34.4"},"engines":{"node":">=14.18"},"_id":"eventsource-parser@1.1.1","gitHead":"8c4350ad921fa422104d2c32429a86e3c444ae9a","_nodeVersion":"18.17.1","_npmVersion":"9.8.1","dist":{"shasum":"576f8bcf391c5e5ccdea817abd9ead36d1754247","size":50937,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-1.1.1.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_1.1.1_1695204906220_0.47925777293533334"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-20T10:15:06.457Z","publish_time":1695204906457,"_source_registry_name":"default","_cnpm_publish_time":1695204906457},"1.1.0":{"name":"eventsource-parser","version":"1.1.0","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","keywords":["sse","eventsource","server-sent-events"],"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"license":"MIT","author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"},"./stream":{"types":"./dist/stream.d.ts","source":"./src/stream.ts","import":"./dist/stream.js","require":"./dist/stream.cjs","default":"./dist/stream.js"},"./package.json":"./package.json"},"main":"./dist/index.cjs","module":"./dist/index.js","source":"./src/index.ts","types":"./dist/index.d.ts","scripts":{"prebuild":"npm run clean","build":"pkg-utils build && pkg-utils --strict","clean":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","prepublishOnly":"npm run build","test":"vitest --reporter=verbose","posttest":"npm run lint"},"prettier":{"bracketSpacing":false,"printWidth":100,"semi":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaFeatures":{"modules":true},"ecmaVersion":9,"sourceType":"module"},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"devDependencies":{"@sanity/pkg-utils":"^2.4.9","@sanity/semantic-release-preset":"^4.0.2","@types/node":"^14.18.0","@typescript-eslint/eslint-plugin":"^6.7.2","@typescript-eslint/parser":"^6.7.2","eslint":"^8.49.0","eslint-config-prettier":"^9.0.0","eslint-config-sanity":"^6.0.0","prettier":"^3.0.3","rimraf":"^5.0.1","rollup-plugin-visualizer":"^5.9.2","semantic-release":"^21.0.0","typescript":"^5.2.2","vitest":"^0.34.4"},"engines":{"node":">=14.18"},"_id":"eventsource-parser@1.1.0","gitHead":"a535201fee99a89c94d975f60922d0c9861c9f79","_nodeVersion":"18.17.1","_npmVersion":"9.8.1","dist":{"shasum":"c1c759f12d23a9d7239c4a93cdb0ffb321f1abd1","size":16614,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-1.1.0.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_1.1.0_1695204477140_0.6914378777982904"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-20T10:07:57.349Z","publish_time":1695204477349,"_source_registry_name":"default","_cnpm_publish_time":1695204477349},"1.0.0":{"name":"eventsource-parser","version":"1.0.0","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"module","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","require":"./dist/index.cjs","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"main":"./dist/index.cjs","module":"./dist/index.js","source":"./src/index.ts","types":"./dist/index.d.ts","scripts":{"clean":"rimraf dist coverage","build":"pkg-utils build && pkg-utils --strict","prebuild":"npm run clean","lint":"eslint . && tsc --noEmit","test":"vitest --reporter=verbose","posttest":"npm run lint","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","engines":{"node":">=14.18"},"devDependencies":{"@sanity/pkg-utils":"^2.2.13","@sanity/semantic-release-preset":"^4.0.2","@types/node":"^14.18.0","@typescript-eslint/eslint-plugin":"^5.56.0","@typescript-eslint/parser":"^5.56.0","eslint":"^7.32.0","eslint-config-prettier":"^8.8.0","eslint-config-sanity":"^5.1.0","prettier":"^2.8.6","rimraf":"^4.4.1","rollup-plugin-visualizer":"^5.9.0","semantic-release":"^20.1.3","typescript":"^4.9.5","vitest":"^0.29.7"},"bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","prettier":{"semi":false,"printWidth":100,"bracketSpacing":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaVersion":9,"sourceType":"module","ecmaFeatures":{"modules":true}},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"gitHead":"8ef994f0d904fd88025d24f8ae63bb58879eda7f","_id":"eventsource-parser@1.0.0","_nodeVersion":"18.15.0","_npmVersion":"8.19.4","dist":{"shasum":"6332e37fd5512e3c8d9df05773b2bf9e152ccc04","size":14560,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-1.0.0.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_1.0.0_1679599758537_0.09316939834404225"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-23T19:29:18.742Z","publish_time":1679599758742,"_cnpm_publish_time":1679599758742},"0.1.0":{"name":"eventsource-parser","version":"0.1.0","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"types":"./dist/index.d.ts","source":"./src/index.ts","module":"./dist/index.esm.js","main":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","require":"./dist/index.js","node":{"import":"./dist/index.cjs.mjs","require":"./dist/index.js"},"import":"./dist/index.esm.js","default":"./dist/index.esm.js"},"./package.json":"./package.json"},"scripts":{"build":"pkg-utils build --tsconfig tsconfig.dist.json","prebuild":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","test":"jest","posttest":"npm run lint","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","engines":{"node":">=14.18"},"devDependencies":{"@sanity/pkg-utils":"^2.2.3","@types/jest":"^27.5.1","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^5.49.0","@typescript-eslint/parser":"^5.49.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-config-sanity":"^5.1.0","jest":"^28.1.0","prettier":"^2.8.3","rimraf":"^4.1.2","rollup-plugin-visualizer":"^5.9.0","ts-jest":"^28.0.2","typescript":"^4.9.4"},"bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","prettier":{"semi":false,"printWidth":100,"bracketSpacing":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaVersion":9,"sourceType":"module","ecmaFeatures":{"modules":true}},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"jest":{"clearMocks":true,"collectCoverage":true,"coverageDirectory":"coverage","coverageProvider":"v8","coverageReporters":["lcov"],"preset":"ts-jest","slowTestThreshold":10,"testTimeout":30000},"gitHead":"aa92494e188a990d899029b0a9d9decd7369fcbf","_id":"eventsource-parser@0.1.0","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"shasum":"4a6b84751ca8e704040e6f7f50e7d77344fa1b7c","size":8110,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-0.1.0.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_0.1.0_1674942287595_0.41753365075261084"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-28T21:44:47.756Z","publish_time":1674942287756,"_cnpm_publish_time":1674942287756},"0.0.5":{"name":"eventsource-parser","version":"0.0.5","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"commonjs","source":"./src/index.ts","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","import":"./dist/index.mjs","require":"./dist/index.js","default":"./dist/index.mjs"}},"scripts":{"build":"pkg-utils build --tsconfig tsconfig.dist.json","prebuild":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","test":"jest","posttest":"npm run lint","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","engines":{"node":">=12"},"devDependencies":{"@sanity/pkg-utils":"^1.9.0","@types/jest":"^27.5.1","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-config-sanity":"^5.1.0","jest":"^28.1.0","prettier":"^2.5.1","rimraf":"^3.0.2","ts-jest":"^28.0.2","typescript":"^4.5.4"},"bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","prettier":{"semi":false,"printWidth":100,"bracketSpacing":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaVersion":9,"sourceType":"module","ecmaFeatures":{"modules":true}},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"jest":{"clearMocks":true,"collectCoverage":true,"coverageDirectory":"coverage","coverageProvider":"v8","coverageReporters":["lcov"],"preset":"ts-jest","slowTestThreshold":10,"testTimeout":30000},"gitHead":"6ffa65f60b0949be610d5a7df7cbc486fd77a2bc","_id":"eventsource-parser@0.0.5","_nodeVersion":"18.7.0","_npmVersion":"8.15.0","dist":{"shasum":"6041bf765ebced8ac83de9dc78754b7b919b7342","size":8117,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-0.0.5.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_0.0.5_1664756736610_0.5851681787187173"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-03T00:25:39.852Z","publish_time":1664756736805,"_cnpm_publish_time":1664756736805},"0.0.4":{"name":"eventsource-parser","version":"0.0.4","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"commonjs","source":"./src/index.ts","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","import":"./dist/index.mjs","require":"./dist/index.js","default":"./dist/index.mjs"}},"scripts":{"build":"pkg-utils build --tsconfig tsconfig.dist.json","prebuild":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","test":"jest","posttest":"npm run lint","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","engines":{"node":">=12"},"devDependencies":{"@sanity/pkg-utils":"^1.9.0","@types/jest":"^27.5.1","@types/node":"^12.0.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-config-sanity":"^5.1.0","jest":"^28.1.0","prettier":"^2.5.1","rimraf":"^3.0.2","ts-jest":"^28.0.2","typescript":"^4.5.4"},"bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","prettier":{"semi":false,"printWidth":100,"bracketSpacing":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaVersion":9,"sourceType":"module","ecmaFeatures":{"modules":true}},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"jest":{"clearMocks":true,"collectCoverage":true,"coverageDirectory":"coverage","coverageProvider":"v8","coverageReporters":["lcov"],"preset":"ts-jest","slowTestThreshold":10,"testTimeout":30000},"gitHead":"656ecbcaf0397018367cab1451dbbc12e6010d66","_id":"eventsource-parser@0.0.4","_nodeVersion":"16.16.0","_npmVersion":"8.18.0","dist":{"shasum":"35df1f86df3c117d83dddddcf6c2e63f348514af","size":8115,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-0.0.4.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_0.0.4_1664756559952_0.35273163070038005"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-03T00:22:43.079Z","publish_time":1664756560240,"_cnpm_publish_time":1664756560240},"0.0.3":{"name":"eventsource-parser","version":"0.0.3","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"commonjs","source":"./src/index.ts","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","import":"./dist/index.mjs","require":"./dist/index.js","default":"./dist/index.mjs"}},"scripts":{"build":"pkg-utils build --tsconfig tsconfig.dist.json","prebuild":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","test":"jest","posttest":"npm run lint","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","devDependencies":{"@sanity/pkg-utils":"^1.8.2","@types/express":"^4.17.13","@types/jest":"^27.5.1","@types/node":"^18.7.23","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-config-sanity":"^5.1.0","jest":"^28.1.0","prettier":"^2.5.1","rimraf":"^3.0.2","ts-jest":"^28.0.2","typescript":"^4.5.4"},"bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","prettier":{"semi":false,"printWidth":100,"bracketSpacing":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaVersion":9,"sourceType":"module","ecmaFeatures":{"modules":true}},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"jest":{"clearMocks":true,"collectCoverage":true,"coverageDirectory":"coverage","coverageProvider":"v8","coverageReporters":["lcov"],"preset":"ts-jest"},"gitHead":"e1f5ebdb09fae9a994674b33e8c0054c19120f29","_id":"eventsource-parser@0.0.3","_nodeVersion":"16.16.0","_npmVersion":"8.18.0","dist":{"shasum":"9dd0698edc560695fd94666ff88dcc38c0dd1ab7","size":7902,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-0.0.3.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_0.0.3_1664576762595_0.1464005279968934"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-30T22:26:19.297Z","publish_time":1664576762901,"_cnpm_publish_time":1664576762901},"0.0.2":{"name":"eventsource-parser","version":"0.0.2","description":"Streaming, source-agnostic EventSource/Server-Sent Events parser","sideEffects":false,"type":"commonjs","source":"./src/index.ts","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","source":"./src/index.ts","import":"./dist/index.mjs","require":"./dist/index.js","default":"./dist/index.mjs"}},"scripts":{"build":"pkg-utils build --tsconfig tsconfig.dist.json","prebuild":"rimraf dist coverage","lint":"eslint . && tsc --noEmit","test":"jest","posttest":"npm run lint","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+ssh://git@github.com/rexxars/eventsource-parser.git"},"keywords":["sse","eventsource","server-sent-events"],"author":{"name":"Espen Hovlandsdal","email":"espen@hovlandsdal.com"},"license":"MIT","devDependencies":{"@sanity/pkg-utils":"^1.8.2","@types/express":"^4.17.13","@types/jest":"^27.5.1","@types/node":"^18.7.23","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/parser":"^5.7.0","eslint":"^7.32.0","eslint-config-prettier":"^8.3.0","eslint-config-sanity":"^5.1.0","jest":"^28.1.0","prettier":"^2.5.1","rimraf":"^3.0.2","ts-jest":"^28.0.2","typescript":"^4.5.4"},"bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"homepage":"https://github.com/rexxars/eventsource-parser#readme","prettier":{"semi":false,"printWidth":100,"bracketSpacing":false,"singleQuote":true},"eslintConfig":{"parserOptions":{"ecmaVersion":9,"sourceType":"module","ecmaFeatures":{"modules":true}},"extends":["sanity","sanity/typescript","prettier"],"ignorePatterns":["lib/**/"]},"jest":{"clearMocks":true,"collectCoverage":true,"coverageDirectory":"coverage","coverageProvider":"v8","coverageReporters":["lcov"],"preset":"ts-jest"},"gitHead":"b251ca4ac19097c6765f26d61df70832cd30fdfa","_id":"eventsource-parser@0.0.2","_nodeVersion":"16.16.0","_npmVersion":"8.18.0","dist":{"shasum":"99f978ba0ffacf0f8f5823fc8677d6d33ee79066","size":21322,"noattachment":false,"key":"/eventsource-parser/-/eventsource-parser-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/eventsource-parser/download/eventsource-parser-0.0.2.tgz"},"_npmUser":{"name":"rexxars","email":"espen@hovlandsdal.com"},"directories":{},"maintainers":[{"name":"rexxars","email":"espen@hovlandsdal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eventsource-parser_0.0.2_1664576703681_0.08331818890883858"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-30T22:25:09.898Z","publish_time":1664576703962,"_cnpm_publish_time":1664576703962}},"readme":"# eventsource-parser\n\n[![npm version](https://img.shields.io/npm/v/eventsource-parser.svg?style=flat-square)](https://www.npmjs.com/package/eventsource-parser)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/eventsource-parser?style=flat-square)](https://bundlephobia.com/result?p=eventsource-parser)[![npm weekly downloads](https://img.shields.io/npm/dw/eventsource-parser.svg?style=flat-square)](https://www.npmjs.com/package/eventsource-parser)\n\nA streaming parser for [server-sent events/eventsource](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events), without any assumptions about how the actual stream of data is retrieved. It is intended to be a building block for [clients](https://github.com/rexxars/eventsource-client) and polyfills in javascript environments such as browsers, node.js and deno.\n\nIf you are looking for a modern client implementation, see [eventsource-client](https://github.com/rexxars/eventsource-client).\n\nYou create an instance of the parser, and _feed_ it chunks of data - partial or complete, and the parse emits parsed messages once it receives a complete message. A [TransformStream variant](#stream-usage) is also available for environments that support it (modern browsers, Node 18 and higher).\n\nOther modules in the EventSource family:\n\n- [eventsource-client](https://github.com/rexxars/eventsource-client): modern, feature rich eventsource client for browsers, node.js, bun, deno and other modern JavaScript environments.\n- [eventsource-encoder](https://github.com/rexxars/eventsource-encoder): encodes messages in the EventSource/Server-Sent Events format.\n- [eventsource](https://github.com/eventsource/eventsource): Node.js polyfill for the WhatWG EventSource API.\n\n> [!NOTE]\n> Migrating from eventsource-parser 1.x/2.x? See the [migration guide](./MIGRATE-v3.md).\n\n## Installation\n\n```bash\nnpm install --save eventsource-parser\n```\n\n## Usage\n\n```ts\nimport {createParser, type EventSourceMessage} from 'eventsource-parser'\n\nfunction onEvent(event: EventSourceMessage) {\n  console.log('Received event!')\n  console.log('id: %s', event.id || '<none>')\n  console.log('event: %s', event.event || '<none>')\n  console.log('data: %s', event.data)\n}\n\nconst parser = createParser({onEvent})\nconst sseStream = getSomeReadableStream()\n\nfor await (const chunk of sseStream) {\n  parser.feed(chunk)\n}\n\n// If you want to re-use the parser for a new stream of events, make sure to reset it!\nparser.reset()\nconsole.log('Done!')\n```\n\n### Retry intervals\n\nIf the server sends a `retry` field in the event stream, the parser will call any `onRetry` callback specified to the `createParser` function:\n\n```ts\nconst parser = createParser({\n  onRetry(retryInterval) {\n    console.log('Server requested retry interval of %dms', retryInterval)\n  },\n  onEvent(event) {\n    // …\n  },\n})\n```\n\n### Parse errors\n\nIf the parser encounters an error while parsing, it will call any `onError` callback provided to the `createParser` function:\n\n```ts\nimport {type ParseError} from 'eventsource-parser'\n\nconst parser = createParser({\n  onError(error: ParseError) {\n    console.error('Error parsing event:', error)\n    if (error.type === 'invalid-field') {\n      console.error('Field name:', error.field)\n      console.error('Field value:', error.value)\n      console.error('Line:', error.line)\n    } else if (error.type === 'invalid-retry') {\n      console.error('Invalid retry interval:', error.value)\n    }\n  },\n  onEvent(event) {\n    // …\n  },\n})\n```\n\nNote that `invalid-field` errors will usually be called for any invalid data - not only data shaped as `field: value`. This is because the EventSource specification says to treat anything prior to a `:` as the field name. Use the `error.line` property to get the full line that caused the error.\n\n> [!NOTE]\n> When encountering the end of a stream, calling `.reset({consume: true})` on the parser to flush any remaining data and reset the parser state. This will trigger the `onError` callback if the pending data is not a valid event.\n\n### Comments\n\nThe parser will ignore comments (lines starting with `:`) by default. If you want to handle comments, you can provide an `onComment` callback to the `createParser` function:\n\n```ts\nconst parser = createParser({\n  onComment(comment) {\n    console.log('Received comment:', comment)\n  },\n  onEvent(event) {\n    // …\n  },\n})\n```\n\n> [!NOTE]\n> Leading whitespace is not stripped from comments, eg `: comment` will give ` comment` as the comment value, not `comment` (note the leading space).\n\n## Stream usage\n\n```ts\nimport {EventSourceParserStream} from 'eventsource-parser/stream'\n\nconst eventStream = response.body\n  .pipeThrough(new TextDecoderStream())\n  .pipeThrough(new EventSourceParserStream())\n```\n\nNote that the TransformStream is exposed under a separate export (`eventsource-parser/stream`), in order to maximize compatibility with environments that do not have the `TransformStream` constructor available.\n\n## License\n\nMIT © [Espen Hovlandsdal](https://espen.codes/)\n","_attachments":{},"homepage":"https://github.com/rexxars/eventsource-parser#readme","bugs":{"url":"https://github.com/rexxars/eventsource-parser/issues"},"license":"MIT"}