loading...

re: Refactoring node.js (Part 1) VIEW POST

FULL DISCUSSION
 

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.

code of conduct - report abuse