Skip to main content
hostname - os - Node documentation
function hostname

Usage in Deno

import { hostname } from "node:os";
hostname(): string

Returns the host name of the operating system as a string.

Return Type

string
Back to top