p-call
Call a legacy async method and return a promise
Very similar to promisify-call but always promisifies the call, rather than guessing if it should.
Example
Instead of using the legacy error-first callback API ...
objectmethodargument { if error throw error console}
Use the Promise API ...
const result = await console // Or, specify the function as a property key of `object`...const result = await console