@lonu/stc
Version:
A tool for converting OpenApi/Swagger/Apifox into code.
10 lines (9 loc) • 490 B
JavaScript
// deno-lint-ignore-file no-explicit-any
// Copyright 2018-2025 the Deno authors. MIT license.
// This module is browser compatible.
// Check Deno, then the remaining runtimes (e.g. Node, Bun and the browser)
import * as dntShim from "../../../../../_dnt.shims.js";
export const isWindows = dntShim.dntGlobalThis.Deno?.build.os === "windows" ||
dntShim.dntGlobalThis.navigator?.platform?.startsWith("Win") ||
dntShim.dntGlobalThis.process?.platform?.startsWith("win") ||
false;