Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Deno.hostname

UNSTABLE: New API, yet to be vetted. Additional consideration is still necessary around the permissions required.

Get the hostname of the machine the Deno process is running on.

console.log(Deno.hostname());

Requires allow-env permission.

function hostname(): string;
§
hostname(): string
[src]

§Return Type

§
string
[src]