dev-notes/Node.js/Standard Packages/os.md
2021-09-22 19:17:55 +02:00

477 B

OS Module

Information

os.arch();  // CPU Architecture
os.platform();  // OS platform (aix, darwin, freebsd, linux, openbsd, sunos, win32)
os.type();  // OS name (Linux, Windows_NT, )

os.release();  // OS release number
os.version();  // OS kernel version

os.tmpdir(); // OS Temp directory
os.homedir();  // CUrrent user home directory

os.hostname();  // PC Name

os.cpus();  // Array of CPU info
os.networkInterfaces();  // Array of Network Interfaces info