UNPKG

asyncsse

Version:

Fetch Server-Sent Events (SSE) as an async iterable

63 lines (62 loc) 1.84 kB
{ "name": "asyncsse", "version": "1.3.3", "description": "Fetch Server-Sent Events (SSE) as an async iterable", "type": "module", "main": "dist/asyncsse.js", "module": "dist/asyncsse.js", "exports": { ".": { "types": "./dist/asyncsse.d.ts", "default": "./dist/asyncsse.js" }, "./fetchtext": { "types": "./dist/fetchtext.d.ts", "default": "./dist/fetchtext.js" } }, "scripts": { "test": "deno test --allow-net", "build-fetchtext": "npx -y esbuild fetchtext.ts --bundle --minify --format=esm --sourcemap --outfile=dist/fetchtext.js && npx -y --package typescript tsc fetchtext.ts --lib ESNext,DOM --declaration --emitDeclarationOnly --outDir dist", "build-asyncsse": "npx -y esbuild asyncsse.ts --bundle --minify --format=esm --sourcemap --outfile=dist/asyncsse.js && npx -y --package typescript tsc asyncsse.ts --lib ESNext,DOM --declaration --emitDeclarationOnly --outDir dist", "build": "npm run build-fetchtext && npm run build-asyncsse", "lint": "npx prettier@3.3 --write *.js *.ts *.md", "prepublishOnly": "npm run lint && npm run build" }, "keywords": [ "sse", "fetch", "async", "iterable", "server-sent-events", "streaming", "event-stream", "generator", "http-streaming", "real-time", "eventsource" ], "author": "S Anand <root.node@gmail.com>", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sanand0/asyncsse.git" }, "bugs": { "url": "https://github.com/sanand0/asyncsse/issues" }, "homepage": "https://github.com/sanand0/asyncsse#readme", "engines": { "node": ">=14.0.0" }, "files": [ "README.md", "dist" ], "prettier": { "printWidth": 120 }, "devDependencies": {}, "dependencies": {}, "peerDependencies": {} }