Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junosuarez/ninvoke
Call a Node callback style method and return a Promise
https://github.com/junosuarez/ninvoke
Last synced: 8 days ago
JSON representation
Call a Node callback style method and return a Promise
- Host: GitHub
- URL: https://github.com/junosuarez/ninvoke
- Owner: junosuarez
- License: mit
- Created: 2013-12-10T21:47:53.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-19T19:51:37.000Z (over 9 years ago)
- Last Synced: 2024-10-07T21:08:23.013Z (about 1 month ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ninvoke
Call a Node callback style method and return a PromiseImplemented with [bluebird](https://npm.im/bluebird) for fast, Promise/A+ promises.
## usage
```js
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](https://npm.im/q), whose api I stole.
## contributors
- jden
## license
MIT. (c) MMXIII jden . See LICENSE.md