SyntaxFix
Write A Post
Hire A Developer
Questions
This is the TypeScript version to the question. It is usable after Node 11.0:
import { promises as fs } from 'fs'; async function loadMonoCounter() { const data = await fs.readFile('monolitic.txt', 'binary'); return Buffer.from(data); }