Skip to main content
function Deno.hostname
allow-env
Unstable

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

console.log(Deno.hostname());

Requires allow-env permission. Additional consideration is still necessary around the permissions required.

Returns

string