← Back to index
function Deno.hostname

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

console.log(Deno.hostname());

Requires allow-sys permission.