Major and Breaking Changes
Major Changes - Version 6
Version 6 is a complete rewrite of the library in TypeScript, shipping typed declarations (.d.ts) for every function while keeping a consistent, promise-based
API. It remains a zero-dependency
node.js
backend/server-side library (it will not run in a browser).
New Functions
camera()detected cameraskeyboard()detected keyboardsmouse()detected pointing devicesthunderbolt()Thunderbolt controllers and devicespci()PCI devices (experimental)npu()detected NPUs / AI accelerators (experimental)software()installed software / applicationsnpm()globally installed npm packagesgpu()graphics controllers (replaces the controllers part ofgraphics())displays()monitors / displays (replaces the displays part ofgraphics())inetPublicIp()public IPv4 / IPv6 address (#731)-
serialPorts()detected serial / COM ports incl. USB adapters (device,name,manufacturer,serialNumber,vendorId,productId,pnpId,type; Linux via sysfs, macOS via ioreg, Windows viaWin32_PnPEntity) -
processFocused()process owning the currently focused window (pid,name,path) networkRoutes()routing table:destination(CIDR),gateway,iface,metric,familydiskSpeed()disk speed test - sequential write / read throughput in MB/s (temporary test file, default 1 GB, max. 10 s per phase, reads bypass the file cache)inetSpeed()internet speed test - download / upload throughput in Mbit/s (default server speed.cloudflare.com, own URLs optional)powerShellStart()/powerShellRelease()start / terminate the pool of persistent PowerShell processes (Windows)
New Attributes
currentLoad()added per CPUcoreIdandsocketId(physical core / socket of each logical CPU)disksIO()addedbusyPercentandidlePercent(Linux)camera()addedcontinuityas connection type for iPhone / iPad Continuity Cameras andmodelfrom the camera model id (macOS)mem()addedswapin_secandswapout_sec(Linux)blockDevices()addedpartUuid,partLabel,partType,partFlagsandpartStart(Linux)networkInterfaces()addedbridgeMembers(Linux, macOS) andtypecanfor SocketCAN interfaces (Linux)pci()addediommuGroup(Linux)osInfo()detects Ubuntu flavors, Raspberry Pi OS and Fedora Atomic variants indistro(Linux)cpuCurrentSpeed()real current frequency per core on Apple Silicon (optionalmacos-smcpackage)osInfo()addedinstallDate(operating system installation date)osInfo()addeddisplayServer(wayland, x11, quartz, dwm, surfaceflinger or '' when headless)osInfo()addedlastUpdate(date of the last OS update on macOS / Windows, last package update on Linux / BSD)osInfo()addedhwAcceleration(available compute layers: cuda, rocm, oneapi, vulkan, opencl, metal, dx12, directml)osInfo()addedawake(system fully awake -falseduring macOS dark wake)-
osInfo()addedsecurity(systemwide mandatory access control / system integrity:module,enabled,mode,policy- SELinux or AppArmor on Linux, System Integrity Protection on macOS, empty elsewhere) osInfo()improved distribution /logofiledetection (Linux)networkStats()addedrx_packetsandtx_packets(received / transferred packets overall)bios()addediBridge(Apple iBridge / security chip: modelName, build, bootUuid, secureBoot - macOS only)displays()addedserial,displayIdandproductionYearon Windows (previously macOS only)displays()addedRDPas connection type for remote desktop / indirect displays (Windows)displays()addedmirror(true if the display is part of a mirrored / duplicated set)displays()addedscale(DPI scaling factor of the display, e.g.1.5for 150% - Windows only)-
displays()addedworkAreaResolutionX/YandworkAreaPositionX/Y(desktop working area - the screen minus task bar and app bars on Windows, menu bar and Dock on macOS, panels/docks on Linux via_NET_WORKAREA, X11 only) -
fans()new function - detected fans withrpmandpwm(Linux via hwmon / thermal cooling devices; Windows only with a running LibreHardwareMonitor / OpenHardwareMonitor; macOS (Apple Silicon) with the optionalmacos-smcpackage) gpu()addedtemperatureGpuon Apple Silicon (optionalmacos-smcpackage)-
cpuTemperature(),fans(),cpuCurrentSpeed(): Apple Silicon via the optionalmacos-smcpackage (replacesmacos-temperature-sensor;main= average,max= hottest CPU sensor, real current CPU frequency) os()addedinstallDate,displayServerservices()addedstartmodeon Linux (systemdUnitFileState: enabled, disabled, static, ..., previously Windows only)-
services()addedlastChanged(Linux/systemd: date of the last state change - service start when running, service stop otherwise; macOS: start time of the service processes) processes()addedcpuTime(absolute CPU time of the process itself in seconds, excluding already reaped children, #1007)processes()now reports zombie processes with their plain name instead ofname] <defunct>networkInterfaces()addedvendor,modelandgateway(default gateway of this interface)-
currentLoad()addedcurrentLoadIowait/rawCurrentLoadIowaitand per CPUloadIowait/rawLoadIowait(CPU time waiting for IO, thewavalue oftop) - Linux only,0elsewhere versions()added angular, cargo, composer, curl, dockerCompose, go, gradle, herd, laravel, podman, rails, ruby, rust, sqlite3, vim, vue-
blockDevices()ZFS pools and multi device btrfs file systems are now resolved like mdraid: every member gets its pool asgroupand one entry per pool is added, with the raid profile astype(e.g.mirror,raidz1,raid1,raid10). btrfs is read from sysfs (no btrfs-progs, no root needed), ZFS fromzpool status/zpool list(Linux)
Extended Windows Support
disksIO(),fsStats(),fsOpenFiles()andthunderbolt()are now also available on Windows-
audio()default,inandoutare now detected on Windows (previously macOS only) -Win32_SoundDevicehas neither flag, so the audio endpoints in the MMDevices registry are evaluated: an active playback / recording endpoint givesout/in, and the highest ranked one per direction is thedefault audio()addedchannelon Windows (USB, Bluetooth, Onboard, PCIe, HDMI - derived from the PNP device id and the device name)-
currentLoad()avgLoadis no longer always0on Windows - Windows has no kernel load average, so it is approximated the way the unix kernel does it: an exponentially weighted moving average (1 / 5 / 15 min) over the number of busy cores. It is only fed whilecurrentLoad()is being called, so the value converges the longer an application polls it blockDevices()addedguid(volume GUID path, e.g.\\?\Volume{...}\- needed to mount a volume, #856)-
disksIO()addedrWaitTime,wWaitTime,tWaitTime,rWaitPercent,wWaitPercentandtWaitPercenton Windows (previously Linux / BSD only)
Fixes (open version 5 issues resolved in version 6)
-
fsSize()the file systemtypeon macOS is now read frommountinstead of being guessed fromdiskutil- the guess could only ever produceAPFS,HFSorNFS, so APFS volumes were reported asHFSand zfs, exfat, msdos or smbfs were never recognised at all. This also makes the ZFS correction work on macOS (#1017) -
blockDevices()andfsSize()report the usable instead of the raw capacity for btrfs. The pool entry summed its member sizes and btrfs reports the raw device capacity as filesystem size, so a raid5 of four disks showed the full four disks. The pool size is now derived from the data profile (raid5 minus one device, raid6 minus two, raid1/raid10/dup halved, raid1c3/raid1c4 divided by three/four), andfsSize()usesused + available, which already accounts for the profile. Note that the reported size therefore shrinks on mirrored profiles compared to earlier betas -
fsSize()ZFS datasets now report the hierarchical usage fromzfs list- df and statfs only know what a dataset references itself, so a parent holding its data in child datasets was shown as almost empty (#1017) - note thatusedthen includes child datasets and snapshots, exactly likezfs list, so it must not be summed across nested datasets -
mem()activeandavailablenow account for the ZFS ARC cache - the ARC is not part of the page cache, soMemAvailable(Linux) and the page counters (FreeBSD) report it as used. On a ZFS hostactivetherefore sat neartotalpermanently and real memory growth was invisible. Everything the ARC holds abovec_minis reclaimable and is now counted as available, the same correction htop applies (Linux/FreeBSD) -
processes()statewasunknownfor every process on Windows -Win32_Process.ExecutionStateis documented as not implemented and always empty. The state is now derived from the threads of a process: running, sleeping, or blocked when every thread is suspended (Windows) displays()EDID parsing with multiple monitors - all displays reported the first monitor's model, resolution and size (Linux, #997)displays()display positions (positionX/positionY) are now parsed from xrandr (Linux, #866)-
displays()falls back to the DRM connectors in sysfs (/sys/class/drm) when no display server is running -xdpyinfo/xrandrneed an X session, so on a headless server (or Wayland without XWayland) the result was always empty although the kernel knows every connected monitor incl. its EDID (Linux) displays()per-display refresh rate instead of copying the primary monitor's rate to all displays (Windows, #853)-
displays()resolutionX/Y,currentResX/Y,positionX/Yare now physical pixels read fromEnumDisplaySettings-Forms.Screenbounds are DPI scaled and mixed scaled sizes with unscaled positions, so a scaled monitor reported a wrong resolution and pushed all other monitors to wrong positions (Windows) displays()monitor data (connection type, size) is now correlated byInstanceName- fixes swapped values on multi-GPU setups (Windows, #764)-
displays()mirrored/duplicated monitors are now reported as separate physical displays; monitors that are attached but inactive (e.g. "PC screen only") are not listed (Windows, #940) -
displays()andgpu()share the result of their common base query when called in parallel (e.g. viagetStaticData()) - the expensivesystem_profiler(macOS) /win32_VideoController(Windows) call runs only once -
displays()vendor/model fallback fromWin32_DesktopMonitoris now matched per display viaPNPDeviceID- previously only the first entry was considered (Windows, idea from #855) -
diskLayout()virtual disks (e.g. KVM/virtio on VPS) are no longer dropped - the filter no longer requires a non-zerodisc-max; pseudo devices (ram, zram, loop, dm-, nbd) are excluded by name instead (Linux, #919) -
services()state, start mode and PIDs are now read from systemd instead of guessing them by matching service names against the process list - fixes services reported as not running when the process name differs from the unit name (e.g.php8.4-fpm->php-fpm) and partial name matches reporting a foreign service as running (Linux, #899, #818) -
networkInterfaces()lists interfaces without an assigned IP address too -os.networkInterfaces()skips those, so e.g. an unplugged or unconfigured NIC was missing (Linux, #903, #355, #632) -
networkInterfaces()reportstype(wired / wireless) while the link is down as well - previouslyunknown, unlike Windows and macOS (Linux, #632) -
networkInterfaces()adapters are matched by connection name instead of MAC address - a docking station mirroring the MAC of the internal NIC made one of the two disappear and mixed up their data (Windows, #762) networkInterfaces('default')no longer returns an incomplete list when the default interface is not the first one (macOS/BSD)networkInterfaces()queriesnmcli device statusonce per call instead of once per interface (Linux)-
networkInterfaces()virtualis alsotruefor every interface without an underlying bus device in sysfs (bridges, bonds, tun / tap, wireguard, veths with custom names) - previously only name prefixes likevethand known virtual MAC ranges were detected (Linux) -
audio()falls back to ALSA (/proc/asound) when no PCI audio device is found - ARM boards like the Raspberry Pi have no PCI bus, solspcireturned nothing and the result was always empty (Linux, #545) networkStats()results keep the queried interface name - cached results (within 500 ms) and results for unknown interfaces returned an emptyiface(#779)networkStats()interfaces without traffic (e.g. a link-local only adapter) now return their stats andoperstateinstead of an empty result (Windows, #779)networkStats()rx_dropped,rx_errors,tx_droppedandtx_errorsare no longer lost in cached results-
gpu()takesvramfor discrete cards from sysfs instead of the PCI region size. The largestRegion N ... [size=]oflspciwas only overwritten when no region had been found at all, so the sysfs value never won - a Radeon 7900 XTX reportedvram: 32768because resizable BAR exposes a 32 GB window on a 24 GB card.mem_info_vram_totalnow wins, and discrete Intel Arc is read as well throughlmem_total_bytes/tile0/physical_vram_size_bytes. NVIDIA is unaffected (Linux) -
gpu()no longer reports the PCI graphics aperture asvramfor integrated GPUs. The largestRegion N ... [size=]oflspciis the CPU visible aperture, not video memory - an Intel UHD Graphics 630 was reported asvram: 256, vramDynamic: falsealthough it has no dedicated memory at all. Cards whose DRM driver is an integrated one and that expose no VRAM total node in sysfs now returnvram: nullwithvramDynamic: true. Discrete AMD, Intel Arc and NVIDIA cards are unaffected (Linux) -
gpu()reads clock, temperature, power, utilization and memory from DRM sysfs (/sys/class/drm/card*) - runtime values for Intel and AMD GPUs without extra tools or root, previously nvidia-smi only (Linux, #890) -
gpu()detects the integrated GPU of NVIDIA Tegra / Jetson boards - it is a device tree platform device, solspcidoes not list it and the DRM sysfs path skips it for lack of a PCI address, which leftgpu()empty on every Jetson.model,utilizationGpu,temperatureGpuandclockCorenow come from the Tegra sysfs nodes, so notegrastatsand nojtopis needed (Linux) -
cpuTemperature()matches the CPU thermal zone case insensitively - Tegra / Jetson names itCPU-therm, so the main temperature stayed empty there (Linux) -
gpu()metalVersionon macOS is read fromspdisplays_mtlgpufamilysupportand understands the Metal support level reported by newer macOS versions (e.g.spdisplays_metal4->4) - the old GPU family keys no longer exist, sometalVersionwas always empty (macOS) -
wifiConnections()connection details are now queried by NetworkManager connection UUID instead of the connection name - fixes wrong data when the name differs from the SSID or contains spaces (Linux, #872) -
dockerContainers(),dockerImages(),dockerContainerStats()skip failed inspect / stats calls instead of returning broken entries,netIOsums all networks of a container instead of reporting the last one only,dockerAll()no longer hangs on invalid ids -
system()no longer reports bare metal KVM hosts as virtual machine - only guest side signals count (hypervisorCPU flag,Hypervisor detectedkernel messages), thekvm_amd/kvm_intelmodule messages of a host no longer match (Linux, #1054) services('*')no longer returns thelaunchctl listheader line as a service namedLabel(macOS)
Breaking Changes
Be aware, that the new version 6.x is NOT fully backward compatible to version 5.x ...
We modernized the library with a full TypeScript rewrite and made a few interface changes. Please review the list below and adapt your code:
| Topic | Old (V5) | New (V6) | Comments |
|---|---|---|---|
time() |
synchronous | await si.time() |
time() is now asynchronous and returns a promise |
version() |
synchronous | await si.version() |
version() is now asynchronous too - all functions are now async |
| callbacks | si.cpu(data => { ...}) |
removed | callbacks are no longer available - use async / await (preferred) or promises |
graphics() |
{ controllers, displays } |
gpu()
|
graphics() was split into two functions, each returning a plain array. graphics() is still available as deprecated wrapper |
battery() |
{ hasBattery, ..., additionalBatteries } |
[{ ... }] |
battery() returns an array, one entry per battery. Empty array without battery, hasBattery and additionalBatteries removed |
| language | JavaScript | TypeScript | typed .d.ts declarations are now shipped for every function |
| module resolution | deep require('.../dist/...') |
exports map(both require and import) |
only documented entry points are importable; deep dist/... paths gone |
| Node.js | >= 10.0 | >= 20.0 | minimum Node.js version is now 20.0 |
| unsupported platforms | null |
[], default object or '' |
array results return [], object results the default object (all fields present),string results ''. inetLatency(),
diskSpeed(), inetSpeed()and processFocused() still return null when there is no result.dockerInfo()
returns the default object instead of {} when Docker is not available
|
dockerContainerProcesses() |
strings | numbers | pidHost, ppid, pgid, nice, rss, vszare now numbers ( null if not available) |
disksIO() |
wait times total since boot |
wait times of the last interval |
rWaitTime, wWaitTime, tWaitTime now report the wait time of the last interval in msand are null on the first call - same
convention as rIO_sec (#1025)
|
currentLoad() |
iowait not counted | iowait in total |
Linux: iowait ticks are now counted in the denominator (os.cpus() drops them) -currentLoadIdle is lower by the iowait share, the categories add up to
100% again
|
osInfo() |
distrobase distribution |
distroflavor / derivative |
Linux: e.g. Kubuntu instead of Ubuntu, Raspberry Pi OS instead of Debian GNU/Linux,Fedora Linux (Silverblue) -
adapt checks like distro === 'Ubuntu'
|
| macOS temperature | macos-temperature-sensor |
macos-smc |
Apple Silicon: install the optional package macos-smc for cpuTemperature(), fans(),temperatureGpu in gpu() and
the current frequency in cpuCurrentSpeed().cpuTemperature() main is now the average of the CPU sensors (max the hottest
one), chipset is null
|
Deprecated
The following functions were renamed for naming consistency or split. The old functions still work but will be removed in a future major version:
currentLoad()- usecpuCurrentLoad()fullLoad()- usecpuFullLoad()inetChecksite()- useinetCheckSite()graphics()- usegpu()anddisplays()(still returns the v5 result{ controllers, displays })
Modular Imports (new)
The whole library, a single operating system, or a single function can now be imported individually:
require('systeminformation')- whole library (all functions, all platforms)require('systeminformation/cpu')- a single function (platform detected at runtime)require('systeminformation/linux')- a whole operating system (/darwin,/windows,/bsd,/sun)require('systeminformation/linux/cpu')- a single function of a single operating system
This keeps bundles small: unused operating-system implementations can be tree-shaken away.
Test Full Version 6 Functionality
If you want to see all function results on your machine, please head over to Testing section. We implemented a tiny test suite where you can easily go through all
functions and test results on your machine without coding.
Major Changes - Version 5
New Functions
audio()detailed audio informationbluetoothDevices()detailed information detected bluetooth devicesprinters()detailed printer informationusb()detailed USB informationwifiInterfaces()detected Wi-Fi interfaceswifiConnections()active Wi-Fi connections
Breaking Changes
Be aware, that the new version 5.x is NOT fully backward compatible to version 4.x ...
We had to make several interface changes to keep systeminformation as consistent as possible. We highly recommend to go through the complete list and adapt your own code to be again compatible to the new version 5:
| Function | Old | New (V5) | Comments |
|---|---|---|---|
| unsupported values | -1 |
null |
values which are unknown or unsupported on platform |
battery() |
hasbattery
|
hasBattery
|
pascalCase conformity |
blockDevices() |
fstype |
fsType |
pascalCase conformity |
cpu() |
speedmin
|
speedMin
|
pascalCase conformity |
cpu().speed
|
string values | now returning numerical values |
better value handling |
cpuCurrentspeed() |
cpuCurrentSpeed() |
function name changed pascalCase conformity |
|
currentLoad() |
avgload
|
avgLoad
|
pascalCase conformity |
dockerContainerStats() |
mem_usage
|
memUsage
|
pascalCase conformity |
dockerContainerProcesses() |
pid_host |
pidHost |
pascalCase conformity |
graphics().display |
pixeldepth
|
pixelDepth
|
pascalCase conformity |
networkConnections() |
localaddress
|
localAddress
|
pascalCase conformity |
networkInterfaces() |
carrier_changes |
carrierChanges |
pascalCase conformity |
processes() |
mem_vsz
|
memVsz
|
pascalCase conformity renamed attributes |
processLoad() |
result as object | result as array of objects | function now allows to provide more than one process (as a comma separated list) |
services() |
pcpu
|
cpu
|
renamed attributes |
vbox() |
HPET
|
hpet
|
pascalCase conformity |
I know, these are a lot of changes, but for the sake of a consistent interface and to be future proof, we think that this was necessary. Thank you for your understanding.
Other Improvements and Changes
baseboard(): added memMax, memSlotsbios(): added language and features (linux)cpu(): extended AMD processor listcpu(): extended socket list (win)cpu(): addedvirtualizationif cpu supports virtualizationcpu(): nowflagsare part of this functioncpuTemperature(): added socket and chipset temperature (linux)disksIO(): addedwaitTime,waitPercent(linux)fsSize(): addedavailablefsSize(): improved calculation ofusedgetData(): support for passing parameters and filters (see section General / getData)graphics(): extended properties macOSgraphics(): extended nvidia-smi parsingnetworkInterfaces(): type detection improved (win - wireless)memLayout(): extended manufacturer list (decoding)memLayout(): added ECC flagosInfo(): better fqdn (win)osinfo(): addedhypervisorif hyper-v is enabled (win only)system(): better Raspberry PI detectionsystem(): addedvirtualandvirtualHost(if system is virtual instance)uuid(): better value supportuuid(): added MACsuuid(): better Raspberry Pi hardware IDversions(): added bash, zsh, fish, powershell, dotnetApple M1 Siliconextended support- updated TypeScript definitions
Test Full Version 5 Functionality
If you want to see all function results on your machine, please head over to Testing section. We implemented a tiny test suite where you can easily go through all
functions and test results on your machine without coding.
Major Changes - Version 4
New Functions
chassis()chassis informationvboxInfo()detailed virtualBox VM informationwifiNetworks()detailed information about available wifi networks
Breaking Changes
-
networkStats(): will provide an array of stats for all given interfaces. In previous versions only one interface was provided as a parameter. Pass '*' for all interfaces networkStats():rxandtxchanged torx_bytesandtx_bytes-
dockerContainerStats()will provide an array of stats for all given docker containers. In previous versions only one interface was provided as a parameter. Pass '*' for all docker containers
Other Changes
system(): optimized system detection (e.g. new Raspberry Pi models, ...)system(), bios(), baseboard(): information also as non-root (linux)graphics(): added pip, pip3, virtualBox,versions(): better controller and display detection, fixesnetworkInterfaces(): optimization, fixesnetworkStats()addedoperstate,type,duplex,mtu,speed,carrierChanges- added TypeScript definitions
Be aware, that the new version 4.x is NOT fully backward compatible to version 3.x ...
Major Changes - Version 3
- works only with
node.jsv4.0.0 and above (using now internal ES6 promise function, arrow functions, ...) - Promises. As you can see in the documentation, you can now also use it in a promise oriented way. But callbacks are still supported.
-
Async/Await. Due to the promises support, systeminformation also works perfectly with the `async/await` pattern (available in
node.jsv7.6.0 and above). See example in the docs.
Full Version History
Full version history (every single release version from version 1.x.x to 5.x.x) can be viewed here