Bun.readableStreamToArray reads the contents of a ReadableStream into an array of chunks.
const stream = new ReadableStream();
const chunks = await Bun.readableStreamToArray(stream);
Runtime docs · Guides · Streams
Bun.readableStreamToArray reads the contents of a ReadableStream into an array of chunks.
const stream = new ReadableStream();
const chunks = await Bun.readableStreamToArray(stream);