DEV Community

Discussion on: Refactoring node.js (Part 1)

Collapse
 
hugo__df profile image
Hugo Di Francesco

Node 10+ has a promisified version of fs under fs.promises.

const fs = require ('fs').promises
Collapse
 
paulasantamaria profile image
Paula Santamaría

That's awesome, thanks! I'll probably include this in the next article.