promise-to-callback
v1.0.0
Published
Convert promise to callback interface
Downloads
322,888
Readme
promise-to-callback
Convert promise to callback interface
Because there are many promise implementations and callbacks are better to handle errors.
Install
$ npm install --save promise-to-callback
Usage
var promiseToCallback = require('promise-to-callback');
promiseToCallback(promise)(function(err, data) {
...
});
License
MIT © Steve Mao