From 6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114 Mon Sep 17 00:00:00 2001 From: Rubin Bhandari Date: Thu, 11 Jun 2020 22:56:26 +0545 Subject: feat: add Deno.osName() (#5714) --- std/node/os.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/node/os.ts') diff --git a/std/node/os.ts b/std/node/os.ts index 27b054f4d..65b158b3f 100644 --- a/std/node/os.ts +++ b/std/node/os.ts @@ -190,9 +190,9 @@ export function totalmem(): number { notImplemented(SEE_GITHUB_ISSUE); } -/** Not yet implemented */ +/** Returns the operating system name as returned by uname(3) */ export function type(): string { - notImplemented(SEE_GITHUB_ISSUE); + return Deno.osName(); } /** Not yet implemented */ -- cgit v1.2.3