platform/os
Documentation
- source: platform/os.ts
Overview
Classes
OS
isWindows()
Checks if the operating system is a variant of Windows.
tsstatic 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).
tsstatic isUnix(): boolean;Returns
- Type:
boolean- Description: True if the OS is Unix-like, false otherwise.
