hostname method

String hostname()

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

console.log(Deno.hostname());

Requires allow-sys permission.

Implementation

_i2.String hostname() => _i3.callMethod(
      this,
      'hostname',
      [],
    );