Socket
Socket
Sign inDemoInstall

middle

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    middle

Combining two streams


Version published
Weekly downloads
88
increased by6.02%
Maintainers
1
Install size
37.7 kB
Created
Weekly downloads
 

Readme

Source

Middle

Get a stream A, pipe it into stream B.

Returns a duplex stream that is the writeable stream part of A and a readable stream part of B

Example:

var Middle = require('middle');

var from = // a duplex stream
var to = // another duplex stream
var middle = new Middle(from, to)


// you can also pipe this:
anotherStream.pipe(middle);

FAQs

Last updated on 22 Mar 2012

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc