goldfinch

0.0.9 • Public • Published

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();

Readme

Keywords

Package Sidebar

Install

npm i goldfinch

Weekly Downloads

1

Version

0.0.9

License

none

Last publish

Collaborators

  • zolmeister
  • aaronyo
  • gsilk