ncall

0.1.0 • Public • Published

ncall

Call a Node callback style function and return a Promise

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

usage

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

installation

$ npm install ncall

running the tests

From package root:

$ npm install
$ npm test

thanks

kudos to Q, whose api I stole.

contributors

license

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

Package Sidebar

Install

npm i ncall

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators