push-composed
v1.0.1
Published
same as pull-composed but with push streams
Downloads
3
Readme
push-composed
Like pull-composed but made with push streams
Push-composed converts all its arguments to an array, flattens it and tries to execute each one if they are a function. It also returns the flattened array. This is exactly like pull-composed but uses push streams internally. Just like pull-composed it should work with arbitrary functions not just push or pull streams.
install
npm install push-composed
usage
var push = require('push-stream');
var compose = require('push-compose');
var x = function () {
return push(
push.values([ function () { console.log('yolo'); } ]),
push.spy(console.log)
)
}
compose(x);