Skip to main content

Melon.std.system.osInformation

Contains the current OS information.

Status: stable
Type: OSInformation

Types

NameSchema

OSInformation

interface OSInformation {
platform: Platform;
versionString: string;
servicePack?: string;
}

Platform

enum Platform {
Win32S,
Win32Windows,
Win32NT,
WinCE,
Unix,
Xbox,
MacOSX,
Other
}

Example usage

const { platform } = Melon.std.system.osInformation;

if (platform === Platform.Unix) {
//execute Linux/Unix only logic...
}