by chociej · 4y ago · 0 comments
> No more calling util.promisify(fs.writefile) just to get a function you can await
I'm sorry to say you've been missing out on `fs.promises.writeFile()` (or `require('fs/promises')`) for quite a while!
I was waiting for a writeFilePromise to show up, should have guessed they'd be name spaced.