Package-level declarations
Types
Properties
Functions
Returns an estimate of the default amount of parallelism a program should use. Always returns a value greater than zero.
Returns an array of objects containing information about each logical CPU core. The array will be empty if no CPU information is available, such as if the /proc
file system is unavailable.
Returns a string identifying the endianness of the CPU for which the Node.js binary was compiled.
Returns the scheduling priority for the process specified by pid
. If pid
is not provided or is 0
, the priority of the current process is returned.
Returns an array containing the 1, 5, and 15 minute load averages.
Returns an object containing network interfaces that have been assigned a network address.
Attempts to set the scheduling priority for the process specified by pid
. If pid
is not provided or is 0
, the process ID of the current process is used.
Returns information about the currently effective user. On POSIX platforms, this is typically a subset of the password file. The returned object includes the username
, uid
, gid
, shell
, and homedir
. On Windows, the uid
and gid
fields are -1
, and shell
is null
.