系统信息: {
manufacturer: 'Micro-Star International Co., Ltd.',
model: 'MS-7C09',
version: '1.0',
serial: 'Default string',
uuid: '78a9a66d-a046-6914-ae8f-2cf05d34a83b',
sku: 'Default string',
virtual: false
}
BIOS信息: {
vendor: 'American Megatrends Inc.',
version: '1.40',
releaseDate: '2020-01-06',
revision: '',
serial: ''
}
主板信息: {
manufacturer: 'Micro-Star International Co., Ltd.',
model: 'H310M PRO-VDH PLUS (MS-7C09)',
version: '1.0',
serial: 'K4G0078316',
assetTag: '',
memMax: 68719476736,
memSlots: 4
}
CPU信息: {
manufacturer: 'Intel',
brand: 'Core鈩?i3-8100',
vendor: 'GenuineIntel',
family: '6',
model: '158',
stepping: '11',
revision: '',
voltage: '',
speed: 3.6,
speedMin: 3.6,
speedMax: 3.6,
governor: '',
cores: 4,
physicalCores: 4,
performanceCores: 4,
efficiencyCores: 0,
processors: 1,
socket: 'LGA1151',
flags: 'de pse tsc msr mce sep mtrr mca cmov psn clfsh ds acpi mmx fxsr sse sse2 ss htt tm ia64 pbe',
virtualization: false,
cache: { l1d: 128, l1i: 128, l2: 1048576, l3: 6291456 }
}
内存信息: {
total: 17043857408,
free: 10548547584,
used: 6495309824,
active: 6495309824,
available: 10548547584,
buffers: 0,
cached: 0,
slab: 0,
buffcache: 0,
swaptotal: 3087007744,
swapused: 0,
swapfree: 3087007744,
writeback: null,
dirty: null
}
磁盘布局: [
{
device: '\\\\.\\PHYSICALDRIVE0',
type: 'SSD',
name: 'Samsung SSD 860 EVO 500GB',
vendor: 'Samsung',
size: 500105249280,
bytesPerSector: 512,
totalCylinders: 60801,
totalHeads: 255,
totalSectors: 976768065,
totalTracks: 15504255,
tracksPerCylinder: 255,
sectorsPerTrack: 63,
firmwareRevision: 'RVT02B6Q',
serialNum: 'S3Z3NB0KB38591F',
interfaceType: 'SATA',
smartStatus: 'Ok',
temperature: null
}
]
文件系统大小: [
{
fs: 'C:',
type: 'NTFS',
size: 499880292352,
used: 52240666624,
available: 447639625728,
use: 10.45,
mount: 'C:',
rw: true
}
]
网络接口: [
{
iface: '浠ュお缃?,
ifaceName: 'Realtek PCIe GbE Family Controller',
default: true,
ip4: '192.168.8.99',
ip4subnet: '255.255.255.0',
ip6: 'fdef:474f:ee0f:be49:dcb8:c55e:5f94:5d07',
ip6subnet: 'ffff:ffff:ffff:ffff::',
mac: '2c:f0:5d:34:a8:3b',
internal: false,
virtual: false,
operstate: 'up',
type: 'wired',
duplex: '',
mtu: '',
speed: 1000,
dhcp: true,
dnsSuffix: '',
ieee8021xAuth: 'Unknown',
ieee8021xState: 'Unknown',
carrierChanges: 0
},
{
iface: 'Loopback Pseudo-Interface 1',
ifaceName: 'Loopback Pseudo-Interface 1',
default: false,
ip4: '127.0.0.1',
ip4subnet: '255.0.0.0',
ip6: '::1',
ip6subnet: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',
mac: '00:00:00:00:00:00',
internal: true,
virtual: false,
operstate: 'down',
type: '',
duplex: '',
mtu: '',
speed: null,
dhcp: false,
dnsSuffix: '',
ieee8021xAuth: 'Unknown',
ieee8021xState: 'Unknown',
carrierChanges: 0
}
]
图形信息: {
controllers: [
{
vendor: 'Intel Corporation',
model: 'Intel(R) UHD Graphics 630',
bus: 'PCI',
vram: 1024,
vramDynamic: true,
subDeviceId: '7C091462'
},
{
vendor: 'Microsoft',
model: 'Microsoft Remote Display Adapter',
bus: '',
vram: 0,
vramDynamic: true,
subDeviceId: null
}
],
displays: [
{
vendor: '',
model: '',
deviceName: '\\\\.\\DISPLAY1',
main: true,
builtin: false,
connection: '',
resolutionX: 1604,
resolutionY: 877,
sizeX: null,
sizeY: null,
pixelDepth: 32,
currentResX: 1604,
currentResY: 877,
positionX: 0,
positionY: 0,
currentRefreshRate: 32
}
]
}
操作系统信息: {
platform: 'Windows',
distro: 'Microsoft Windows 10'?,
release: '10.0.19045',
codename: '',
kernel: '10.0.19045',
arch: 'x64',
hostname: 'DESKTOP-6BK7CIU',
fqdn: 'DESKTOP-6BK7CIU',
codepage: '936',
logofile: 'windows',
serial: '00330-80000-00000-AA624',
build: '19045',
servicepack: '0.0',
uefi: true,
hypervisor: false,
remoteSession: true
}
电池状态: {
hasBattery: false,
cycleCount: 0,
isCharging: false,
designedCapacity: 0,
maxCapacity: 0,
currentCapacity: 0,
voltage: 0,
capacityUnit: '',
percent: 0,
timeRemaining: null,
acConnected: true,
type: '',
model: '',
manufacturer: '',
serial: ''
}
electron 可以获取到的设备信息
23 min read