mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
345423cf76
Follow up to #22157. This leaves us with 4 usages of `ensureFastOps()` in `deno` itself. There's also about 150 usages of `Deno.core.ops.<op_name>` left as well.
16 lines
395 B
TypeScript
16 lines
395 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. 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";
|