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