mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -05:00
46b6037644
``` > deno compile --allow-read=. --include data-file.txt main.js ``` This only applies to files on the filesystem. For remote modules, that's going to have to wait for `import ... from "./data.txt" with { "type": "bytes" }` or whatever it will be.
1 line
62 B
JavaScript
1 line
62 B
JavaScript
console.log(Deno.readTextFileSync("./data-file.txt").trim());
|