Skip to main content

hostname

function Deno.hostname
allow-sys
Jump to headinghostname(): string

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

console.log(Deno.hostname());

Requires allow-sys permission.

Return Type Jump to heading

string
Back to top