Lightweight Node.js CLI for viewing system info with command-line options ⚡.
You can run the script in two ways:
$ node syscli.js$ npm startBoth commands will display all system info by default.
--all→ Show everything (default if no flags are given)--system→ Show OS and platform information--memory→ Show total and free memory--cpu→ Show CPU cores and speed--user→ Show current user information
Show everything (default):
$ node syscli.jsShow only system info:
$ node syscli.js --systemShow memory and CPU info together:
$ node syscli.js --memory --cpuShow user info only:
$ node syscli.js --user=== System Info ===
OS : Linux 6.8.0-41-generic (x64)
Platform : linux
Hostname : mymachine
Uptime : 183 minutes
=== Memory ===
Total : 7.77 GB
Free : 1.52 GB
=== CPU ===
Cores : 4
Model : Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Core 1: 1800 MHz
Core 2: 1800 MHz
Core 3: 1800 MHz
Core 4: 1800 MHz
=== User ===
Username : geovanne
Home dir : /home/geovanne
