node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

align

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