In this guide you will learn how to use Node’s util.promisfy to promisify your own functions. This utilitiy function was included in NodeJS version 8. If you plan to follow along with this guide you’ll need to install the latest version.
Full article