Socket
Socket
Sign inDemoInstall

teex

Package Overview
Dependencies
4
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    teex

Turn a readable stream into multiple readable streamx streams


Version published
Weekly downloads
430K
increased by1.08%
Maintainers
1
Install size
60.4 kB
Created
Weekly downloads
 

Readme

Source

teex

Turn a readable stream into multiple readable streamx streams.

npm install teex

Usage

const tee = require('teex')

// a, b are readable streams that are "clones"
// of someReadableStream. both streams need to
// be flowing, for someReadableStream to flow

const [a, b] = tee(someReadableStream)

API

const streams = tee(s, [howMany])

Split a readable stream into multiple streams. The howMany argument indicates how many streams to split into and defaults to 2.

License

MIT

FAQs

Last updated on 12 Sep 2022

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