1. teex
Turn a readable stream into multiple readable streamx streams
teex
Package: teex
Created by: mafintosh
Last modified: Mon, 12 Sep 2022 08:39:15 GMT
Version: 1.0.1
License: MIT
Downloads: 1,344,717
Repository: https://github.com/mafintosh/teex

Install

npm install teex
yarn add teex

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

Dependencies

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code