1.0.4 • Published 3 years ago
basic-cli-module v1.0.4
basic-CLI-module
os
Ref The os module provides operating system-related utility methods and properties. It can be accessed using:
const os = require('os');
How to call each data
- node yourapp.js -arch ----> shows architecture
Use
os.arch()
- node yourapp.js -cpu ----> shows cpus
Use
os.cpus()
- node yourapp.js -ram----> shows ram
Use
os.totalmem()
andos.freemem()
- node yourapp.js -hdd----> shows disk space Instal check-disk-space
- node yourapp.js -hostname ----> shows hostname
Use
os.hostname()
- node yourapp.js -ip ----> shows ip address
Use
os.networkInterfaces()