summaryrefslogtreecommitdiff
path: root/std/_util/os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/_util/os.ts')
-rw-r--r--std/_util/os.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/std/_util/os.ts b/std/_util/os.ts
deleted file mode 100644
index 3b56b6d8a..000000000
--- a/std/_util/os.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
-// This module is browser compatible.
-
-export const osType = (() => {
- if (globalThis.Deno != null) {
- return Deno.build.os;
- }
-
- // deno-lint-ignore no-explicit-any
- const navigator = (globalThis as any).navigator;
- if (navigator?.appVersion?.includes?.("Win") ?? false) {
- return "windows";
- }
-
- return "linux";
-})();
-
-export const isWindows = osType === "windows";