Get system summary information
You can obtain the following information:
- Device Name
- Processor
- Memory
- Operating System
- Network
- NodeJs
- NPM
- MongoDB
- Redis
- Nginx
npm install -g mini_sysinfo
mini_sysinfo
# DeviceName PC-2017204IFLS
# CPU Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz (4核心)
# RAM 8 GB (7.89 可用)
# OS Windows 10 Pro Windows_NT x64 10.0.19045
# ...
# NodeJs 16.17.0
# NPM 8.15.0
# MongoDB 5.0.0
# Redis 5.0.9
# Nginx --
const miniSysinfo = require("mini_sysinfo");
console.log(miniSysinfo());
/**
[
{ name: "DeviceName", value: "PC-2017204IFLS" },
{
name: "CPU",
value: "Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz (4核心)",
},
...
{ name: "NodeJs", value: "16.17.0" },
{ name: "NPM", value: "8.15.0" },
{ name: "MongoDB", value: "5.0.0" },
{ name: "Redis", value: "5.0.9" },
{ name: "Nginx", value: "--" },
];
*/