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
>
streamToBuffer(
stream
):Promise
<Buffer
>
Converts a stream to a buffer. Loads a file if string is passed.
• stream: string
| Readable
Promise
<Buffer
>