micro-pip

A small utility for async pipe

npm install micro-pip
2 downloads in the last week
4 downloads in the last month

micro

Support for making functions pipeline. You can use this both node and browsers.

Install

Install with npm:

npm install micro-pipe

API - Queries

var micropipe = require('micro-pipe');
micropipe(function(next){ console('a'), next()}
          ,function(next){ console('b'), next()}
          ,function(next){ console('c'), next()}); // => 'a', 'b', 'c'

also use on browser

<script type="text/javascript" src="micro-pipe.js"></script>
<script type="text/javascript">

    micropipe(function(next){ console('x'), next()}
              ,function(next){ console('y'), next()}
              ,function(next){ console('z'), next()}); // => 'x', 'y', 'z'

</script>
npm loves you