UNPKG

tee

Version:
41 lines (27 loc) 551 B
# tee `tee(1)` [![Build Status](https://travis-ci.org/godmodelabs/tee.png?branch=master)](https://travis-ci.org/godmodelabs/tee) ## Usage ```javascript var tee = require('tee'); src .pipe(tee( dest1, dest2, dest3 )) .pipe(somewhereElse) ``` ## Installation ```bash $ npm install tee-1 # or $ component install godmodelabs/tee ``` ## API ### tee(destination, ...) Creates a new through Stream that pipes all incoming data to each `destination`-Stream. Emits `close` when all piped to streams closed. ## License (MIT)