Skip to content

streamToBuffer

streamToBuffer(stream): Promise<Buffer>

Converts a stream to a buffer. Loads a file if string is passed.

Parameters

stream: string | Readable

Returns

Promise<Buffer>

Source

src/utils.ts:118