node-bufferstream
v0.1.1
Published
A duplex stream that reads from and writes to a Node.js Buffer object
Downloads
7
Readme
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')
})