DEV Community

Discussion on: How to rewrite a callback function in Promise form and async/await form in JavaScript

Collapse
ns23 profile image
Nitesh Sawant

We can also use util.promisify() to convert callback to promise

Collapse
zeropaper profile image
Valentin Vago

yep. works like a charm! :)
devdocs.io/node/util#util_util_pro...