Promises...
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
.gitignore
.jshintrc
LICENSE
README.md
index.js
package.json
pre-commit

README.md

goldfinch

Extends Bluebird

tap()

Promise.resolve().tap(function(a) { } /*, error handler */)

fcall()

Promise.fcall(function(p1) {}, p1).then()

nfcall()

Promise.nfcall(function(p1, cb) { cb() }, p1).then()

promisifyValues()

Promise.promisifyValues({ abc: function() {} }).abc().then()

ambidextrous()

Guess if a function takes a callback parameter, and make it optional

Promise.ambidextrous(function(abc, cb) { cb() }).then();
Promise.ambidextrous(function(abc) { return abc }).then();