Node 10+ has a promisified version of fs under fs.promises.
const fs = require ('fs').promises
That's awesome, thanks! I'll probably include this in the next article.
We're a place where coders share, stay up-to-date and grow their careers.
Node 10+ has a promisified version of fs under fs.promises.
That's awesome, thanks! I'll probably include this in the next article.