The purpose of "promisification" (and utilities like Node.js's built-in util.promisify()) is to take an old-school, callback-based function and transform it into a modern function that returns a Promise. This allows you to clean up your codebase, avoid "callback hell," and use the much cleaner async/await syntax with legacy code or older libraries.
Promise.promisify()` is a utility to convert a callback-based function into a Promise-based function.
Takes a function following the common error-first callback style, i.e. taking a (err, value) => ... callback as the last argument, and returns a version that returns promises.