Node.js Now has some Promise methods in the core as well as async and await.
Having validate return a promise if no callback is provided would a welcome addition.
Bluebird's asCallback() method as one of example of supporting both callback and Promise APIs.
http://bluebirdjs.com/docs/api/ascallback.html
Node.js Now has some Promise methods in the core as well as
asyncandawait.Having
validatereturn a promise if no callback is provided would a welcome addition.Bluebird's
asCallback()method as one of example of supporting both callback and Promise APIs.http://bluebirdjs.com/docs/api/ascallback.html