Skip to main content
Deno.hostname - Deno documentation
function Deno.hostname
allow-sys
hostname(): string
Get the `hostname` of the machine the Deno process is running on. ```ts console.log(Deno.hostname()); ``` Requires `allow-sys` permission.

Return Type

string