1 2 3 4 5 6 7 8 9 10 11 12 13 |
x106 x209 x209 x209 |
I
|
// Copyright 2018-2025 the Deno authors. MIT license. export function checkWindows(): boolean { // deno-lint-ignore no-explicit-any const global = globalThis as any; const os = global.Deno?.build?.os; // Check Deno, then the remaining runtimes (e.g. Node, Bun and the browser) return typeof os === "string" ? os === "windows" : global.navigator?.platform?.startsWith("Win") ?? global.process?.platform?.startsWith("win") ?? false; } |