buffer-stream-converter

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i buffer-stream-converter

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.74 kB

Total Files

4

Last publish

Collaborators

  • pazzavlad