ncall
v0.1.0
Published
Call a Node callback style function and return a Promise
Downloads
2
Readme
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
- jden [email protected]
license
MIT. (c) MMXIII jden [email protected]. See LICENSE.md