mirror of
https://github.com/denoland/deno.git
synced 2024-12-01 16:51:13 -05:00
19 lines
444 B
TypeScript
19 lines
444 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { core } from "ext:core/mod.js";
|
|
const {
|
|
op_node_build_os,
|
|
} = core.ensureFastOps(true);
|
|
|
|
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";
|