2.0.1 • Published 7 years ago
sysinf v2.0.1
sysinf
System Info module for Node.js
Only Windows
systems supported
It uses WMIC
and can get info for:
CPU
({Name, NumberOfCores, NumberOfLogicalProcessors})GPU
({Name, AdapterRAM})ROM
({Caption, Size})RAM
({Manufacturer, PartNumber, Capacity})DVD
({Name, MediaLoaded})NET
({Description, NetEnabled})Sound
({Name, Status})Display
({Description, ScreenWidth, ScreenHeight})BIOS
({Manufacturer, Caption})
Usage:
var sysinf = require('sysinf');
sysinf()
Output will be JSON response like:
{
"cpu": [
{
"Name": "Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz",
"NumberOfCores": "2",
"NumberOfLogicalProcessors": "4"
}
],
"gpu": [
{
"AdapterRAM": "2147483648",
"Name": "NVIDIA GeForce 920M"
}
],
"rom": [
{
"Caption": "KINGSTON SHFS37A240G",
"Size": "240054796800"
}
],
"ram": [
{
"Capacity": "8589934592",
"Manufacturer": "Kingston",
"PartNumber": "99U5428-018.A00LF"
}
],
"net": [
{
"Description": "Realtek PCIe FE Family Controller",
"NetEnabled": "FALSE"
},
{
"Description": "Dell Wireless 1707 802.11b/g/n (2.4GHZ)",
"NetEnabled": "TRUE"
}
],
"dvd": [
{
"MediaLoaded": "FALSE",
"Name": "TSSTcorp DVD+-RW SU-208GB"
}
],
"bios": [
{
"Caption": "A13",
"Manufacturer": "Dell Inc."
}
],
"sound": [
{
"Name": "Realtek High Definition Audio",
"Status": "OK"
}
],
"display": [
{
"Description": "Default Monitor",
"ScreenHeight": "768",
"ScreenWidth": "1366"
}
]
}
Or you can call Separately:
var sysinf = require('sysinf');
sysinf(part)
Available parts: cpu
, gpu
, rom
, ram
, net
, dvd
, bios
, sound
, display
Output will be JSON response like:
[
{
"Caption": "KINGSTON SHFS37A240G",
"Size": "240054796800"
}
]