Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
like a passthrough, but in both directions
JavaScript
branch: master

v1.0.1

latest commit e945646fd3
@isaacs authored
Failed to load latest commit information.
README.md readme
dp.js remove debug function. also, style.
package.json v1.0.1
t.js test

README.md

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.

Something went wrong with that request. Please try again.