Guides Streams
Convert a ReadableStream to a string
Bun.readableStreamToText reads the contents of a ReadableStream into a string.
const stream = new ReadableStream();
const str = await Bun.readableStreamToText(stream);Bun.readableStreamToText reads the contents of a ReadableStream into a string.
const stream = new ReadableStream();
const str = await Bun.readableStreamToText(stream);