$ npm install promise-to-callbackConvert promise to callback interface
Because there are many promise implementations and callbacks are better to handle errors.
$ npm install --save promise-to-callback
var promiseToCallback = require('promise-to-callback');
promiseToCallback(promise)(function(err, data) {
...
});
MIT © Steve Mao