File SystemStreams
Convert a ReadableStream to a Blob
Bun.readableStreamToBlob reads the contents of a ReadableStream into a Blob .
Convert a ReadableStream to JSON
Bun provides several conveniences for reading the contents of a ReadableStream into other formats. To read a stream and parse it as JSON, call its json()
Convert a ReadableStream to a Buffer
To convert a ReadableStream to a Buffer , read its contents into an ArrayBuffer with Bun.readableStreamToArrayBuffer , then create a Buffer that points to it.