Node os
The os module includes tools for interacting with the host OS.
Example
const os = require("os");
const path = require("path");
const myDocuments = path.join(os.homedir(), "Documents");
Constants
Constants |
Description |
os.devNull |
null device |
os.EOL |
OS-specific end of line character |
os.constants.signals |
|
os.constants.errno |
|
os.constants.dlopen |
|
os.constants.priority |
|
Functions
Function |
Description |
availableParallelism |
|
arch |
|
cpus |
|
endianness |
|
freemem |
|
getPriority |
|
homedir |
|
hostname |
|
loadavg |
|
machine |
|
networkInferfaces |
|
platform |
|
release |
|
setPriority |
|
tmpdir |
|
totalmem |
|
type |
|
uptime |
|
userinfo |
|
version |
|
