package
A [WHATWG-compliant](https://streams.spec.whatwg.org/#readablestream) polyfill for `ReadableStream` based on the eponymous implementation in Node.js.
npm install readable-stream-polyfillGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
ReadableStreamA WHATWG-compliant polyfill for ReadableStream based on the eponymous implementation in Node.js.
npm install readable-stream-polyfillconst { ReadableStream } = require('readable-stream-polyfill')
const stream = new ReadableStream({
start(controller) {
controller.enqueue('hello')
controller.enqueue('world')
controller.end()
},
})
const reader = await stream.getReader()// Polyfills the global "ReadableStream" class
// if it's not already implemented.
require('readable-stream-polyfill/globals')Estimated unpacked size across 2 packages.
50.8 kB
Includes dependencies.