diff options
author | Rubin Bhandari <roobin.bhandari@gmail.com> | 2020-06-11 22:56:26 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 13:11:26 -0400 |
commit | 6ccf9037a6b36c81ea0e6ac12d0e2dbd793f6114 (patch) | |
tree | abb74317f03844454306c6d6b52b963ffe8e1d16 /cli/js/ops | |
parent | 818a8010928cb8cef0b7043bd881c8cdce9b6efc (diff) |
feat: add Deno.osName() (#5714)
Diffstat (limited to 'cli/js/ops')
-rw-r--r-- | cli/js/ops/os.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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"); +} |