Skip to main content
Bun.readableStreamToBlob reads the contents of a ReadableStream into a Blob.
const stream = new ReadableStream();
const blob = await Bun.readableStreamToBlob(stream);

See Bun’s other ReadableStream conversion functions.