teex
Turn a readable stream into multiple readable streamx streams
Last updated 4 years ago by mafintosh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install teex 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (4 years ago)

2 Versions

  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 5
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 3
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE