3 ms·
> - The Deno-specific APIs (like Deno.readTextFile()[0]) are Promise-based and have intuitive interfaces require("fs").readFileSync("hello.txt").toString() //
by timdaub 5y ago
> - The Deno-specific APIs (like Deno.readTextFile()[0]) are Promise-based and have intuitive interfaces
require("fs").readFileSync("hello.txt").toString() // toString because it's a buffer by default