mini_sysinfo
v0.1.1
Published
Get system summary information
Downloads
4
Readme
mini_sysinfo
Get system summary information
You can obtain the following information:
- Device Name
- Processor
- Memory
- Operating System
- Network
- NodeJs
- NPM
- MongoDB
- Redis
- Nginx
Install
npm install -g mini_sysinfo
Usage
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 --
API
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: "--" },
];
*/