duplex-passthrough

1.0.2 • Public • Published

duplex-passthrough

For when a single passthrough stream is not enough.

USAGE

var dp = new DuplexPassThrough(stream, options);

Or, if the stream is not available yet:

var dp = new DuplexPassThrough(null, options);
 
// some time later..
dp.wrapStream(stream);

This is useful if you have to buffer up both sides of a duplex stream for some reason, like if you want to read some bits of a socket, but then send it somewhere else, or do other crazy stuff.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    6,936
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    6,936
  • 1.0.1
    1
  • 1.0.0
    2

Package Sidebar

Install

npm i duplex-passthrough

Weekly Downloads

288

Version

1.0.2

License

ISC

Last publish

Collaborators

  • isaacs