align

Align functions for synchronized execution

npm install align
1 downloads in the last week
5 downloads in the last month

Align

npm install align

A very simple queue.

Example

var Align = require('align')
var align = new Align(function() {
    console.log('Done');
});

align.push(function(next) {
    next('foo');
});

align.push(
    function(foo, next) {
        console.log(foo === 'foo');
        next('bar')
    },
    function(bar, next) {
        console.log(bar === 'bar');
        next();
    }
);

align.init();

License

MIT

npm loves you