summaryrefslogtreecommitdiff
path: root/cli/js/ops
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/ops')
-rw-r--r--cli/js/ops/os.ts4
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");
+}