2 ms·
Recent versions of node have an ‘fa/promises’ module and event support top-level await natively. So you can just await fs.readFile where fs here is the promises
by nicoburns 4y ago
Recent versions of node have an ‘fa/promises’ module and event support top-level await natively. So you can just await fs.readFile where fs here is the promises version of the module.