fulfill

NodeJS Promises/A+

npm install fulfill
8 downloads in the last month

NodeJS Promises/A+

Install

npm install fulfill

Example

var Promise = require("fulfill");
var duplicate = function (value) {
    return new Promise(function (p) {
        setTimeout(function () {
            return p.fulfill(p * 2);
        }, 500);
    });
};

duplicate(5).then(function (value) {
    return duplicate(value); // value = 10
}).then(function (value) {
    console.log(value); // value = 20
});
npm loves you