duplex-passthrough
like a passthrough, but in both directions
Last updated 12 years ago by isaacs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ npm install duplex-passthrough 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 1.0.2                                ...           latest (12 years ago)

3 Versions

  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           13 years ago
  • 1.0.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 9
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 0
Last Month 5
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE