Starting Examples
console.log("hi there!");deno run first.tsconst res = await fetch("https://deno.com");
const body = await res.text();
console.log(body);Last updated
console.log("hi there!");deno run first.tsconst res = await fetch("https://deno.com");
const body = await res.text();
console.log(body);Last updated
const filenames = Deno.args;
for (const filename of filenames) {
const file = await Deno.open(filename);
await file.readable.pipeTo(Deno.stdout.writable, { preventClose: true });
}ls > ls.txt
whoami > current_user.txt
deno run --allow-read files.ts ls.txt current_user.txt