Skip to content

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

License

Notifications You must be signed in to change notification settings

mjethani/bufferstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published