1 min readAug 28, 2018
Not done reading… but regarding node 10’s filesystem access.
const fs = require(‘fs’).promises;
…
const txt= await fs.readFile(‘foo.txt’, ‘utf8’);
though I still use mz/fs mostly.
Not done reading… but regarding node 10’s filesystem access.
const fs = require(‘fs’).promises;
…
const txt= await fs.readFile(‘foo.txt’, ‘utf8’);
though I still use mz/fs mostly.
Food nerd (keto, omad, carnivore) — Programmer and JavaScript junkie! (node.js, mongodb, browser)