fetch-stream-reader
Version:
A lightweight client for reading streaming HTTP responses using Fetch and ReadableStream.
51 lines (50 loc) • 1.27 kB
JSON
{
"name": "fetch-stream-reader",
"version": "1.0.7",
"description": "A lightweight client for reading streaming HTTP responses using Fetch and ReadableStream.",
"exports": {
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist"
],
"scripts": {
"dev": "NODE_ENV=development rollup -c ../../rollup.config.js -w",
"build": "pnpm run clean && pnpm run lint && NODE_ENV=production rollup -c ../../rollup.config.js",
"clean": "rm -rf dist",
"format": "prettier --check . --ignore-path ../../.prettierignore",
"format:fix": "prettier --write . --ignore-path ../../.prettierignore",
"lint": "eslint . --ext .js,.ts,.json,.md",
"lint:fix": "eslint . --ext .js,.ts,.json,.md --fix"
},
"keywords": [
"fetch",
"http",
"abortcontroller",
"readable-stream",
"chunked-response",
"stream",
"streaming",
"real-time",
"event",
"event-stream",
"stream-parser",
"ai-api",
"openai",
"chatgpt",
"client",
"typescript",
"sse"
],
"author": "adiu",
"license": "MIT",
"packageManager": "pnpm@10.13.1",
"type": "module",
"dependencies": {
"tslib": "^2.8.1"
}
}