nodeify-function
Q helper for nodeifying a promise returning function.
This method is useful for creating dual promise/callback APIs, i.e. APIs that
return promises but also accept Node.js-style callbacks. Q provides a helper
for nodeifying promises:
promise.nodeify(callback)
.
This function is the inverse: rather than nodeifying the promise, we can simply
nodeify the function containing the promise. For example:
var {return database;};// Without `nodeifyFunction`var {;};// With `nodeifyFunction`: a Q helper that abstracts the above into a// higher-order functionvar createUserNodeified = ;;