Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/deno/cli/js/os.ts>hostname

A modern runtime for JavaScript and TypeScript.
Go to Latest
function hostname
import { hostname } from "https://deno.land/x/deno@v0.30.0/cli/js/os.ts";

Get the hostname. Requires the --allow-env flag.

  console.log(Deno.hostname());

Returns

string