Nodejs os

From wikinotes

Documentation

os docs https://nodejs.org/api/os.html

Machine Info

os.arch()               // 'x64'
os.cpus()               // [ { ..cpuinfo.. }, {...}, ... ]
os.freemem()
os.totalmem()

os.hostname()           // hostname
os.networkInterfaces()  // { "lo1": [ ... ] }

Operating System

os.platform()           // linux, freebsd, darwin, win32, ...
os.version()
os.release()
os.tmpdir()