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 |
os.availableParallelism |
|
os.arch |
|
os.cpus |
|
os.endianness |
|
os.freemem |
|
os.getPriority |
|
os.homedir |
|
os.hostname |
|
os.loadavg |
|
os.machine |
|
os.networkInferfaces |
|
os.platform |
|
os.release |
|
os.setPriority |
|
os.tmpdir |
|
os.totalmem |
|
os.type |
|
os.uptime |
|
os.userinfo |
|
os.version |
|
