Here is a Nodejs console application that prints system information. The full sources and all the instructions can be found from Sysinfo’s Github: https://github.com/postman721/sysinfo
Example output on Linux:
Type : Linux
Arch : x64
Kernel : 5.10.0-14-amd64
Kernel release details : #1 SMP Debian 5.10.113-1 (2022-04-29)
Free memory : 10903 MB
Total memory : 15978 MB
Used memory : 5075 MB
System uptime: 4 Hour(s) 3 minute(s) and 16 second(s)
Hostname: Tester
CPU model: AMD Ryzen 5 5600X 6-Core Processor
CPU speed in MHZ: 3719
Number of CPU cores: 12
Example output on Windows:
Type : Windows_NT
Arch : x64
Kernel : 10.0.19043
Kernel release details : Windows 10 Home
Free memory : 11205 MB
Total memory : 16298 MB
Used memory : 5093 MB
System uptime: 0 Hour(s) 1 minute(s) and 39 second(s)
Hostname: Something
CPU model: AMD Ryzen 5 5600X 6-Core Processor
CPU speed in MHZ: 3700
Number of CPU cores: 12