Fbuffer
Bun

function

stream.consumers.buffer

function buffer(
stream: ReadableStream | AsyncIterable<any, any, any> | ReadableStream<any>
): Promise<NonSharedBuffer>;
@returns

Fulfills with a Buffer containing the full contents of the stream.

Referenced types

interface ReadableStream<R = any>