infinity.os¶
Provides information about the operating system and the processor architecture, on which the INFINITY.JS instance is being run.
Module: none (built-in)
processorCount¶
Type: number
Gets the amount of logical processors on the current system.
hostName¶
Type: number
Gets the hostname of the current operating system.
architecture¶
Type: infinity.os.architectures
Gets the processor architecture identifier, which the current operating system is running on, according to infinity.os.architectures
enums.
build¶
Type: number
Gets the build number of the current operating system.
major¶
Type: number
Gets the major release number of the current operating system.
minor¶
Type: number
Gets the minor release number of the current operating system.
name¶
Type: string
Gets the name of the current operating system.
platform¶
Type: infinity.os.platforms
Gets the general platform identifier of the current operating system, according to infinity.os.platforms
enums.
infinity.os.architectures¶
Values:
-
intelX86:
0
Stands for the x86 processor architecture family.
-
intelX64:
1
Stands for the x64 processor architecture family.
-
arm32:
2
Stands for the 32-bit ARM processor architecture family.
-
arm64:
3
Stands for the 64-bit ARM processor architecture family.
Example:
infinity.loadModule('infinity.os');
let architectures = infinity.os.architectures.intelX86;
infinity.os.platforms¶
Values:
-
windows:
0
Stands for the Microsoft Windows operating systems platform.
-
macOS:
1
Stands for the Apple macOS operating systems platform.
-
iOS:
2
Stands for the Apple iOS operating systems platform.
-
android:
3
Stands for the Google Android operating systems platform.
-
winRt:
4
Stands for the Microsoft Windows Runtime operating systems platform.
-
linux:
5
Stands for the Linux operating systems platform.
Example:
infinity.loadModule('infinity.os');
let platforms = infinity.os.platforms.windows;