Use bluebird's ascallback (aka nodeify) to convert promises to node style callbacks.
npm install ascallbackUse bluebird's promise.asCallback(callback) (aka .nodeify) method as a function to convert non-bluebird promises to node style callbacks.
``bash`
$ npm install asCallback
Call asCallback directly passing the promise, callback and an optional options argument.
`javascript
var asCallback = require('ascallback')
function myAsyncMethod(arg, callback) {
return asCallback(myPromiseMethod(arg), callback)
}
`
See the bluebird's .asCallback docs for full feature set and supported options like "spread"`.