import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.d.ts";
const { hostname } = Deno;
Get the hostname
of the machine the Deno process is running on.
console.log(Deno.hostname());
Requires allow-env
permission.
import { Deno } from "https://deno.land/x/deno@v1.0.0/cli/js/lib.deno.unstable.d.ts";
const { hostname } = Deno;
Get the hostname
of the machine the Deno process is running on.
console.log(Deno.hostname());
Requires allow-env
permission.