blob: 8a3d9edf4894e5e62111f5783da27d8101a7a652 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// 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";
|