A function that creates a Promises/A+ promise.
A function which creates a Promises/A+ promise.
This module passes version 1.3.1 of the Promises/A+ Compliance Test Suite.
make-promise exports a single function, which takes a function as it sole argument. After you have called
makePromise, this function is called immediately afterwards with a Node-style callback as its sole argument.
var skyIsFalling = falsevar makePromise = require"make-promise"var promise = makePromisesetImmediateif skyIsfallingcb"Sky is falling."elsecbpromisethen// phew!console.error errtoString + " Better take cover."
make-promise is released under the MIT License.
Copyright (c) 2013 Meryn Stol