nodeOsMod

object nodeOsMod
class Object
trait Matchable
class Any

Type members

Classlikes

object constants

Value members

Concrete methods

@inline
def `type`(): String
@inline
def arch(): String
@inline
def cpus(): Array[CpuInfo]
@inline
def endianness(): BE | LE
@inline
def freemem(): Double
@inline
def getPriority(): Double

Gets the priority of a process. Defaults to current process.

Gets the priority of a process. Defaults to current process.

@inline
def getPriority(pid: Double): Double
@inline
def homedir(): String
@inline
def hostname(): String
@inline
def loadavg(): Array[Double]
@inline
@inline
def release(): String
@inline
def setPriority(pid: Double, priority: Double): Unit

Sets the priority of the process specified process.

Sets the priority of the process specified process.

Value Params
priority

Must be in range of -20 to 19

@inline
def setPriority(priority: Double): Unit

Sets the priority of the current process.

Sets the priority of the current process.

Value Params
priority

Must be in range of -20 to 19

@inline
def tmpdir(): String
@inline
def totalmem(): Double
@inline
def uptime(): Double
@inline
def userInfo(): UserInfo_[String]
@inline
def userInfo(options: 2): UserInfo_[Buffer]
@inline
def userInfo(options: 4): UserInfo_[String]
@inline
def version(): String

Returns a string identifying the kernel version. On POSIX systems, the operating system release is determined by calling uname(3). On Windows, pRtlGetVersion is used, and if it is not available, GetVersionExW() will be used. See https://en.wikipedia.org/wiki/Uname#Examples for more information.

Returns a string identifying the kernel version. On POSIX systems, the operating system release is determined by calling uname(3). On Windows, pRtlGetVersion is used, and if it is not available, GetVersionExW() will be used. See https://en.wikipedia.org/wiki/Uname#Examples for more information.

Concrete fields

@JSImport("node:os", "EOL") @native
val EOL: String
@JSImport("node:os") @native
val ^: Any