promise.ify
v0.4.0
Published
promiseify / promisify / promise-ify / pify
Downloads
105
Maintainers
Readme
promise.ify
promiseify / promisify / promise-ify / pify
Note
this is target ES5 environment.
Install
$ npm i promise.ify --save
API
promiseify
- promiseify(m, ctx)
- m: the input
- ctx: the context
- promiseify.all(o)
- o: the input object
var promiseify = require('promise.ify')
var readFile = promiseify(fs.readFile, fs)
var Connection = require('mysql/lib/Connection')
promiseify.all(Connection.prototype)
promiseify.noerr
take care of the callback(result)
case
- promiseify.noerr(m, ctx)
- m: the input method
- ctx: the context
- promiseify.noerr.all(o)
- o: the input object
Why
for split things out of bluebird
Changelog
See Also
License
the MIT License http://magicdawn.mit-license.org