Skip to main content
function hostname
hostname(): string
Deprecated

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

Return Type

string
Back to top