4 ms·
That was a fun read, and I'm really interested to see where Bun goes. That said: > No more calling util.promisify(fs.writefile) just to get a function you can
by chociej 4y ago
That was a fun read, and I'm really interested to see where Bun goes. That said:
> 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!
- light24bulbs 4y agoHey, author here. Thank you so much for pointing this out, youre not the first. I'm updating the post. I was waiting for a writeFilePromise to show up, should have guessed they'd be name spaced.
- chociej 4y agoI remember feeling like they snuck that feature in without a lot of fanfare. Seems like it was easy to miss!