mirror of
https://github.com/denoland/deno.git
synced 2025-01-10 16:11:13 -05:00
16 lines
374 B
TypeScript
16 lines
374 B
TypeScript
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
import { op_node_build_os } from "ext:core/ops";
|
|
|
|
export type OSType =
|
|
| "windows"
|
|
| "linux"
|
|
| "android"
|
|
| "darwin"
|
|
| "freebsd"
|
|
| "openbsd";
|
|
|
|
export const osType: OSType = op_node_build_os();
|
|
|
|
export const isWindows = osType === "windows";
|
|
export const isLinux = osType === "linux" || osType === "android";
|