A utility to make any callback based module/object to return promises.
npm add @znck/promised # or `pnpm add @znck/promised` or `yarn add @znck/promised`
import promised from '@znck/promised'
import * as fs from 'fs'
// ...
if (await promised(fs).exists('example.txt')) {
const contents = await promised(fs).readFile('example.txt')
// ...
}