mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -05:00
10 lines
345 B
TypeScript
10 lines
345 B
TypeScript
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
|
|
const { ops } = globalThis.__bootstrap.core;
|
|
|
|
export type OSType = "windows" | "linux" | "darwin" | "freebsd" | "openbsd";
|
|
|
|
export const osType: OSType = ops.op_node_build_os();
|
|
|
|
export const isWindows = osType === "windows";
|
|
export const isLinux = osType === "linux";
|