Add missing node os.release() implementation (#4065)

This commit is contained in:
ecyrbe 2020-02-24 14:35:45 +01:00 committed by GitHub
parent fe9ac35a65
commit fb08cf7005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 66 additions and 11 deletions

View file

@ -52,6 +52,12 @@ declare namespace Deno {
*/
export function hostname(): string;
/** Get the OS release. Requires the `--allow-env` flag.
*
* console.log(Deno.osRelease());
*/
export function osRelease(): string;
/** Exit the Deno process with optional exit code. */
export function exit(code?: number): never;