deno.land / std@0.91.0 / _util / os.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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";
std

Version Info

Tagged at
3 years ago

External Dependencies

No external dependencies 🎉