0.1.0 • Published 10 years ago

ncall v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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