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) --- cli/js/ops/os.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cli/js/ops/os.ts') diff --git a/cli/js/ops/os.ts b/cli/js/ops/os.ts index e63d8b358..915106495 100644 --- a/cli/js/ops/os.ts +++ b/cli/js/ops/os.ts @@ -72,3 +72,7 @@ export function dir(kind: DirKind): string | null { export function execPath(): string { return sendSync("op_exec_path"); } + +export function osName(): string { + return sendSync("op_name"); +} -- cgit v1.2.3