duplexer2 
Like duplexer (http://npm.im/duplexer) but using streams2.
Overview
duplexer2 is a reimplementation of duplexer using the readable-stream API which is standard in node as of v0.10. Everything largely works the same.
Installation
Available via npm:
$ npm install duplexer2
Or via git:
$ git clone git://github.com/deoxxa/duplexer2.git node_modules/duplexer2
API
duplexer2
Creates a new DuplexWrapper
object, which is the actual class that implements most of the fun stuff. All that fun stuff is hidden. DON'T LOOK.
Arguments
options - an object specifying the regular
stream.Duplex
options, as well as the properties described below.writable - a writable stream
readable - a readable stream
Options
bubbleErrors - a boolean value that specifies whether to bubble errors from the underlying readable/writable streams. Default is
true
.
Example
Also see example.js.
Code:
Output:
License
3-clause BSD. A copy is included with the source.
Contact
GitHub (deoxxa)
Twitter (@deoxxa)
Email ([email protected])