BREAKING: make Deno.hostname unstable (#5108)

This commit is contained in:
Ryan Dahl 2020-05-09 12:44:35 -04:00 committed by GitHub
parent eb505f8afc
commit b8364a2636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 10 deletions

View file

@ -1174,4 +1174,12 @@ declare namespace Deno {
state: PermissionState;
constructor(state: PermissionState);
}
/** Get the `hostname` of the machine the Deno process is running on.
*
* console.log(Deno.hostname());
*
* Requires `allow-env` permission.
*/
export function hostname(): string;
}