1.0.1 • Published 7 years ago

push-composed v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

push-composed

Build Status

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);