Socket
Socket
Sign inDemoInstall

duplex-passthrough

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

duplex-passthrough

like a passthrough, but in both directions


Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 20 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc