All Projects → isaacs → mintee

isaacs / mintee

Licence: ISC License
a tiny module for piping an input to multiple output streams

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

mintee

This is a tiny module for piping an input to multiple output streams safely. It emits 'finish' when all of the writable streams it's writing into all emit 'finish'.

USAGE

const Tee = require('mintee')
const tee = new Tee(output1, output2, output3)
tee.on('finish', () => {
  console.log('wrote to all three via tee')
})
input.pipe(tee)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].