Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Deno on MDN. Parent comment
FYI, Node has Promise-based APIs for all filesystem APIs. Node also supports ES modules that use top-level await.
If you create a file `test.mjs` and put this in it, it'll work:
import {readFile} from 'fs/promises'; console.log(await readFile('foo.txt', 'utf8'));
FYI, Node has Promise-based APIs for all filesystem APIs. Node also supports ES modules that use top-level await.
If you create a file `test.mjs` and put this in it, it'll work:
https://nodejs.org/api/fs.html#fs_filehandle_readfile_option...