0.0.3 • Published 6 years ago

herbal v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

herbal

duplicate data into several streams

npm status Travis build status Dependency status

example

npm i -S herbal

const Tee = require('herbal')

// static factories
let tee1 = Tee.create(
    fs.createWriteStream('a'), 
    fs.createWriteStream('b')
)

let tee2 = Tee.createEx(
    { highWaterMark:123 },
    fs.createWriteStream('c'), 
    fs.createWriteStream('d')
)

let tee3 = Tee.createObjectStream(s1, s3, s3)

// constructor 
let tee4 = new Tee(
    [ 
        fs.createWriteStream('e'),
        fs.createWriteStream('f')
    ],
    { highWaterMark:123 }
)

// add more streams after construction
tee.add(fs.createWriteStream('g'))
tee.add(fs.createWriteStream('h'))

license

MIT © Yaniv Kessler

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago