Guides Streams
Convert a ReadableStream to an array of chunks
Bun.readableStreamToArray reads the contents of a ReadableStream into an array of chunks.
const stream = new ReadableStream();
const str = await Bun.readableStreamToArray(stream);Bun.readableStreamToArray reads the contents of a ReadableStream into an array of chunks.
const stream = new ReadableStream();
const str = await Bun.readableStreamToArray(stream);