buffer-stream-converter
v1.0.0
Published
Convert Stream to Buffer and vise versa
Downloads
3
Readme
Convert Node.js Stream to Buffer and vise versa
This util converts Node.js Stream to Buffer or Buffer to Stream.
Usage
const { streamToBuffer, bufferToStream } = require('buffer-stream-converter')
const buffer = await streamToBuffer(someStream) // Converting Stream to Buffer
const stream = bufferToStream(someBuffer) // Converting Buffer to Stream
License
MIT