Hugo Di Francesco
•
Nov 10 '19
Node 10+ has a promisified version of fs under fs.promises.
const fs = require ('fs').promises
Node 10+ has a promisified version of fs under fs.promises.