Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
function Deno.hostname
allow-sys

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

console.log(Deno.hostname());

Requires allow-sys permission.

Returns

string