OS
API support and documentation for the node:os module.
import os from "node:os"
const os = require("node:os")
Modules
Status | Module | Docs |
|---|---|---|
🟢 Supported. |
|
os | Properties
os | Methods
availableParallelism()🟢 Supported.
arch()🟢 Supported.
cpus()🟢 Supported.
endianness()🟢 Supported.
freemem()🟢 Supported.
getPriority([pid])🟢 Supported.
homedir()🟢 Supported.
hostname()🟢 Supported.
loadavg()🟢 Supported.
machine()🔴 Not implemented.
networkInterfaces()🟡 Implemented; not yet compliant.
platform()🟢 Supported.
release()🟡 Implemented; not yet compliant.
setPriority([pid, ]priority)🟢 Supported.
tmpdir()🟢 Supported.
totalmem()🟢 Supported.
type()🟢 Supported.
uptime()🟢 Supported.
userInfo([options])🟢 Supported.
version()🟡 Implemented; not yet compliant.
Last modified: 10 February 2025