Skip to main content
Bun provides several conveniences for reading the contents of a ReadableStream into other formats. To read a stream into a string, call its text() method.
Bun.readableStreamToText(stream) does the same thing, but is deprecated in favor of stream.text().
See Bun’s other ReadableStream conversion functions.