promisifyAll
promisifyAll is a utility function commonly found in JavaScript libraries, most notably in the Bluebird Promise library. Its primary purpose is to convert an object's methods that traditionally use callback patterns into methods that return Promises. This simplifies asynchronous code by allowing developers to use the more modern and readable Promise syntax instead of nested callbacks.
When promisifyAll is applied to an object, it iterates through the object's properties. If a property is
For example, if you have an object with a method like `fs.readFile(path, encoding, callback)`, promisifyAll would