Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 382 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 382 Bytes

Installation

$ npm i node-bufferstream
node-bufferstream@0.1.0 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')
})