node-bufferstream

A duplex stream that reads from and writes to a Node.js Buffer object


Keywords
node, buffer, stream
License
ISC
Install
npm install [email protected]

Documentation

Installation

$ npm i node-bufferstream
[email protected] node_modules/node-bufferstream
$ 

Example

import BufferStream from 'node-bufferstream'

const stream = new BufferStream('Hello')

stream.write(', world!')

stream.on('data', chunk => {
  process.stdout.write(chunk)
})

stream.on('end', () => {
  process.stdout.write('\n')
})