Compatibility layer for efficient streaming of binary data using WHATWG Streams. Current stable version is 0.2.0, with no recent releases or cadence. It provides a consistent cross-browser API to stream HTTP responses as ReadableStream, falling back to XMLHttpRequest with moz-chunked-arraybuffer in Firefox, and TextEncoder in other browsers. Differentiates from native fetch by enabling streaming in older browsers, unlike stream-http which uses callbacks.
npm install fetch-readablestreamNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates streaming a response body as text using fetchStream and a ReadableStream reader.
Use native fetch or XMLHttpRequest for POST.
Include abortcontroller-polyfill if targeting older browsers.
Guard with if (response.body) before calling getReader().
Use import fetchStream from 'fetch-readablestream'
Close reader after use with reader.releaseLock() or let stream cancel.
No dependency data recorded yet.