diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-28 15:36:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-28 15:36:06 +0200 |
commit | b8e3f4c71dae5b43a03e8cfb36e71865e8eeaabf (patch) | |
tree | 369d01d85835aa18548b4892e5a040412c5223fa /cli/dts/lib.deno.ns.d.ts | |
parent | 70bc0eb72b01249b4c1ccc92b51bf5c442b3edc9 (diff) |
feat: Stabilize Deno.hostname() API (#15932)
Diffstat (limited to 'cli/dts/lib.deno.ns.d.ts')
-rw-r--r-- | cli/dts/lib.deno.ns.d.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index f3e6b1376..a9de9abe0 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -161,6 +161,20 @@ declare namespace Deno { */ export function memoryUsage(): MemoryUsage; + /** + * Get the `hostname` of the machine the Deno process is running on. + * + * ```ts + * console.log(Deno.hostname()); + * ``` + * + * Requires `allow-sys` permission. + * + * @tags allow-sys + * @category Runtime Environment + */ + export function hostname(): string; + /** Reflects the `NO_COLOR` environment variable at program start. * * See: https://no-color.org/ |