Skip to content

Raynos/buffer-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

buffer-stream

A duplex stream that buffers writes

Example

var BufferStream = require("buffer-stream") var buffer = BufferStream().buffer() buffer.write("stuff") buffer.on("data", doStuff) someTimeLater(function (stream) { // Oh we have a stream // Empty the buffer onto the stream // Further writes to the buffer go directly to the stream // Any data the stream emits get's re-emitted on the buffer buffer.empty(stream) })

Installation

npm install buffer-stream

Contributors

  • Raynos

MIT Licenced

About

A duplex stream that buffers writes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors