0.0.1 • Published 12 years ago

align v0.0.1

Weekly downloads
9
License
-
Repository
github
Last release
12 years ago

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