ncall

Call a Node callback style function and return a Promise

ncall

Call a Node callback style function and return a Promise

Implemented with bluebird for fast, Promise/A+ promises.

var ncall = require('ncall')
 
var bar = function (argcb) {
  cb(null, !arg)
}
 
ncall(bar, false)
  .then(function (val) {
    // val == true 
  })
$ npm install ncall

From package root:

$ npm install
$ npm test

kudos to Q, whose api I stole.

MIT. (c) MMXIII jden jason@denizac.org. See LICENSE.md