mirror of
https://github.com/denoland/deno.git
synced 2024-12-17 21:03:01 -05:00
11 lines
362 B
TypeScript
11 lines
362 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { core } from "ext:core/mod.js";
|
|
const ops = core.ops;
|
|
|
|
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";
|