ninvoke

1.0.0 • Public • Published

ninvoke

Call a Node callback style method and return a Promise

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

usage

var ninvoke = require('ninvoke')

var foo = {
  bar: function (arg, cb) {
    cb(null, !arg)
  }
}

ninvoke(foo, 'bar', false)
  .then(function (val) {

    // val == true

  })

installation

$ npm install ninvoke

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 ninvoke

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators