Skip to content

geovannewashington/syscli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syscli ⚡

Lightweight Node.js CLI for viewing system info with command-line options ⚡.

syscli-example-gif

Usage:

You can run the script in two ways:

Directly with Node.js:

$ node syscli.js

Via npm start:

$ npm start

Both commands will display all system info by default.

Available Flags

  • --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

Examples:

Show everything (default):

$ node syscli.js

Show only system info:

$ node syscli.js --system

Show memory and CPU info together:

$ node syscli.js --memory --cpu

Show user info only:

$ node syscli.js --user

Example Output:

=== 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

About

Lightweight Node.js CLI for viewing system info with command-line options ⚡.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors