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')
})