Novelty Polygonal Mathematics

    push-composed

    1.0.1 • Public • Published

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

    Install

    npm i push-composed

    DownloadsWeekly Downloads

    9

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • m-onz