Expand description
Node os module. Values that Node derives from the host (platform, arch,
hostname, home/tmp dirs, endianness, EOL) are returned faithfully; the
machine-specific numeric readings (cpus, totalmem, freemem, loadavg,
uptime) return best-effort placeholders (not fuzzed — they vary per host on
reference Node too).
Constants§
- METHODS
- TO_
PRIMITIVE - The
osfunctions node gives a[Symbol.toPrimitive](() => fn()), so`${os.arch}`andos.freemem + 0read the value.