Fbuffer
Bun

function

stream.consumers.buffer

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

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