LarpixClient/node_modules/teex
2026-05-03 17:09:55 +02:00
..
example.js Add capacitorjs runtime 2026-05-03 17:09:55 +02:00
index.js Add capacitorjs runtime 2026-05-03 17:09:55 +02:00
LICENSE Add capacitorjs runtime 2026-05-03 17:09:55 +02:00
package.json Add capacitorjs runtime 2026-05-03 17:09:55 +02:00
README.md Add capacitorjs runtime 2026-05-03 17:09:55 +02:00
test.js Add capacitorjs runtime 2026-05-03 17:09:55 +02:00

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