Neutralize Pesky Miscreants
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    piton-pipepublic

    piton-pipe - Build and run an Async pipeline of functions.

    An input value is given to the pipe and passed each function in turn. This allows async operations to process the value.

    Installation

      npm install piton-pipe
    

    Usage

     var pipe = require('piton-pipe').createPipe(['onCreate']);
     pipe.add(function(value, callback) {
      callback(null, value + 2;
     });
     pipe.add(function(value, callback) {
      callback(null, value / 3);
     });
     var value = 7;
     pipe.run(value, function(error, newValue) {
       console.log(newValue);
     });
    

    Credits

    Licence

    Licenced under the New BSD License

    Keywords

    none

    install

    npm i piton-pipe

    Downloadslast 7 days

    155

    version

    0.0.4

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar