Skip to main content
buffer - stream/consumers - Node documentation
function buffer

Usage in Deno

import { buffer } from "node:stream/consumers";
buffer(stream:
ReadableStream
| Readable
| AsyncIterable<any>
): Promise<Buffer>

Parameters

stream:
ReadableStream
| Readable
| AsyncIterable<any>

Return Type

Promise<Buffer>
Back to top