Skip to content

platform/os

Documentation

Overview

Classes

OS

isWindows()

Checks if the operating system is a variant of Windows.

ts
static isWindows(): boolean;

Returns

  • Type: boolean
  • Description: True if the OS is Windows, false otherwise.

isUnix()

Checks if the operating system is a variant of Unix (including Linux, macOS, and BSD).

ts
static isUnix(): boolean;

Returns

  • Type: boolean
  • Description: True if the OS is Unix-like, false otherwise.