node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

duplex-pipe

duplex-pipe

A friendlier .pipe() for duplex streams that doesn't do cleanup on 'end', as per this node core issue.

methods

This is exactly the same as node 0.8 core Stream except that duplex-pipe will not do dest.on('end', cleanup) if dest is readable.

Plus there is another hack to remove cleanup listeners when piped to.

install

With npm do:

npm install duplex-pipe

license

MIT