Function: readableNodeToWeb
Utils.readableNodeToWeb
▸ readableNodeToWeb(nodeStream
): ReadableStream
<Uint8Array
>
Function that converts Node's Readable into WHATWG ReadableStream
Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js Because it uses forked web-streams-polyfill that are outdated.
author
https://github.com/gwicke
licence
Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE
Parameters
Name | Type |
---|---|
nodeStream | Readable |
Returns
ReadableStream
<Uint8Array
>