hugo__df profile image Hugo Di Francesco

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

const fs = require ('fs').promises