systeminformation 5.33.5 → 6.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +873 -958
- package/dist/audio.d.ts +1 -0
- package/dist/audio.js +18 -0
- package/dist/baseboard.d.ts +1 -0
- package/dist/baseboard.js +17 -0
- package/dist/battery.d.ts +1 -0
- package/dist/battery.js +19 -0
- package/dist/bios.d.ts +1 -0
- package/dist/bios.js +17 -0
- package/dist/block-devices.d.ts +1 -0
- package/dist/block-devices.js +17 -0
- package/dist/bluetooth.d.ts +1 -0
- package/dist/bluetooth.js +17 -0
- package/dist/bsd/battery.d.ts +2 -0
- package/dist/bsd/battery.js +27 -0
- package/dist/bsd/cpu-cache.d.ts +1 -0
- package/dist/bsd/cpu-cache.js +37 -0
- package/dist/bsd/cpu-flags.d.ts +1 -0
- package/dist/bsd/cpu-flags.js +28 -0
- package/dist/bsd/cpu-temperature.d.ts +1 -0
- package/dist/bsd/cpu-temperature.js +29 -0
- package/dist/bsd/cpu.d.ts +1 -0
- package/dist/bsd/cpu.js +98 -0
- package/dist/bsd/index.d.ts +38 -0
- package/dist/bsd/index.js +85 -0
- package/dist/bsd/mem.d.ts +1 -0
- package/dist/bsd/mem.js +37 -0
- package/dist/bsd/network-stats.d.ts +2 -0
- package/dist/bsd/network-stats.js +92 -0
- package/dist/bsd/os-info.d.ts +24 -0
- package/dist/bsd/os-info.js +47 -0
- package/dist/bsd/uuid.d.ts +2 -0
- package/dist/bsd/uuid.js +30 -0
- package/dist/camera.d.ts +1 -0
- package/dist/camera.js +17 -0
- package/dist/chassis.d.ts +1 -0
- package/dist/chassis.js +17 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +107 -0
- package/dist/common/acceleration.d.ts +8 -0
- package/dist/common/acceleration.js +86 -0
- package/dist/common/codepage.d.ts +1 -0
- package/dist/common/codepage.js +43 -0
- package/dist/common/const.d.ts +25 -0
- package/dist/common/const.js +26 -0
- package/dist/common/cpu.d.ts +2 -0
- package/dist/common/cpu.js +12 -0
- package/dist/common/darwin.d.ts +6 -0
- package/dist/common/darwin.js +266 -0
- package/dist/common/datetime.d.ts +9 -0
- package/dist/common/datetime.js +161 -0
- package/dist/common/defaults.d.ts +25 -0
- package/dist/common/defaults.js +304 -0
- package/dist/common/exec.d.ts +10 -0
- package/dist/common/exec.js +69 -0
- package/dist/common/files.d.ts +2 -0
- package/dist/common/files.js +39 -0
- package/dist/common/filesys.d.ts +11 -0
- package/dist/common/filesys.js +282 -0
- package/dist/common/host.d.ts +2 -0
- package/dist/common/host.js +67 -0
- package/dist/common/index.d.ts +12 -0
- package/dist/common/index.js +146 -0
- package/dist/common/internet.d.ts +6 -0
- package/dist/common/internet.js +92 -0
- package/dist/common/mappings.d.ts +55 -0
- package/dist/common/mappings.js +4133 -0
- package/dist/common/network.d.ts +8 -0
- package/dist/common/network.js +162 -0
- package/dist/common/nvidia.d.ts +22 -0
- package/dist/common/nvidia.js +159 -0
- package/dist/common/parse.d.ts +13 -0
- package/dist/common/parse.js +157 -0
- package/dist/common/raspberry.d.ts +5 -0
- package/dist/common/raspberry.js +277 -0
- package/dist/common/security.d.ts +31 -0
- package/dist/common/security.js +241 -0
- package/dist/common/types.d.ts +1024 -0
- package/dist/common/types.js +2 -0
- package/dist/common/windows.d.ts +58 -0
- package/dist/common/windows.js +292 -0
- package/dist/cpu-cache.d.ts +1 -0
- package/dist/cpu-cache.js +19 -0
- package/dist/cpu-current-load.d.ts +2 -0
- package/dist/cpu-current-load.js +249 -0
- package/dist/cpu-current-speed.d.ts +3 -0
- package/dist/cpu-current-speed.js +84 -0
- package/dist/cpu-flags.d.ts +1 -0
- package/dist/cpu-flags.js +19 -0
- package/dist/cpu-full-load.d.ts +1 -0
- package/dist/cpu-full-load.js +30 -0
- package/dist/cpu-temperature.d.ts +1 -0
- package/dist/cpu-temperature.js +19 -0
- package/dist/cpu.d.ts +1 -0
- package/dist/cpu.js +19 -0
- package/dist/darwin/audio.d.ts +2 -0
- package/dist/darwin/audio.js +46 -0
- package/dist/darwin/baseboard.d.ts +1 -0
- package/dist/darwin/baseboard.js +48 -0
- package/dist/darwin/battery.d.ts +2 -0
- package/dist/darwin/battery.js +65 -0
- package/dist/darwin/bios.d.ts +1 -0
- package/dist/darwin/bios.js +45 -0
- package/dist/darwin/block-devices.d.ts +2 -0
- package/dist/darwin/block-devices.js +101 -0
- package/dist/darwin/bluetooth.d.ts +3 -0
- package/dist/darwin/bluetooth.js +84 -0
- package/dist/darwin/camera.d.ts +2 -0
- package/dist/darwin/camera.js +55 -0
- package/dist/darwin/chassis.d.ts +2 -0
- package/dist/darwin/chassis.js +32 -0
- package/dist/darwin/cpu-cache.d.ts +2 -0
- package/dist/darwin/cpu-cache.js +29 -0
- package/dist/darwin/cpu-flags.d.ts +1 -0
- package/dist/darwin/cpu-flags.js +16 -0
- package/dist/darwin/cpu-temperature.d.ts +1 -0
- package/dist/darwin/cpu-temperature.js +44 -0
- package/dist/darwin/cpu.d.ts +1 -0
- package/dist/darwin/cpu.js +69 -0
- package/dist/darwin/disk-layout.d.ts +2 -0
- package/dist/darwin/disk-layout.js +231 -0
- package/dist/darwin/disks-io.d.ts +2 -0
- package/dist/darwin/disks-io.js +56 -0
- package/dist/darwin/displays.d.ts +2 -0
- package/dist/darwin/displays.js +98 -0
- package/dist/darwin/fs-open-files.d.ts +2 -0
- package/dist/darwin/fs-open-files.js +27 -0
- package/dist/darwin/fs-stats.d.ts +2 -0
- package/dist/darwin/fs-stats.js +47 -0
- package/dist/darwin/gpu.d.ts +2 -0
- package/dist/darwin/gpu.js +55 -0
- package/dist/darwin/index.d.ts +56 -0
- package/dist/darwin/index.js +122 -0
- package/dist/darwin/keyboard.d.ts +2 -0
- package/dist/darwin/keyboard.js +73 -0
- package/dist/darwin/mem-layout.d.ts +2 -0
- package/dist/darwin/mem-layout.js +60 -0
- package/dist/darwin/mem.d.ts +2 -0
- package/dist/darwin/mem.js +50 -0
- package/dist/darwin/mouse.d.ts +2 -0
- package/dist/darwin/mouse.js +78 -0
- package/dist/darwin/network-connections.d.ts +2 -0
- package/dist/darwin/network-connections.js +98 -0
- package/dist/darwin/network-gateway-default.d.ts +1 -0
- package/dist/darwin/network-gateway-default.js +26 -0
- package/dist/darwin/network-interface-default.d.ts +2 -0
- package/dist/darwin/network-interface-default.js +41 -0
- package/dist/darwin/network-interfaces.d.ts +2 -0
- package/dist/darwin/network-interfaces.js +205 -0
- package/dist/darwin/network-stats.d.ts +2 -0
- package/dist/darwin/network-stats.js +86 -0
- package/dist/darwin/npm.d.ts +1 -0
- package/dist/darwin/npm.js +5 -0
- package/dist/darwin/npu.d.ts +2 -0
- package/dist/darwin/npu.js +41 -0
- package/dist/darwin/os-info.d.ts +2 -0
- package/dist/darwin/os-info.js +140 -0
- package/dist/darwin/pci.d.ts +2 -0
- package/dist/darwin/pci.js +37 -0
- package/dist/darwin/printer.d.ts +2 -0
- package/dist/darwin/printer.js +45 -0
- package/dist/darwin/software.d.ts +2 -0
- package/dist/darwin/software.js +39 -0
- package/dist/darwin/system.d.ts +1 -0
- package/dist/darwin/system.js +29 -0
- package/dist/darwin/thunderbolt.d.ts +1 -0
- package/dist/darwin/thunderbolt.js +53 -0
- package/dist/darwin/usb.d.ts +3 -0
- package/dist/darwin/usb.js +69 -0
- package/dist/darwin/users.d.ts +2 -0
- package/dist/darwin/users.js +13 -0
- package/dist/darwin/uuid.d.ts +2 -0
- package/dist/darwin/uuid.js +39 -0
- package/dist/darwin/wifi-connections.d.ts +2 -0
- package/dist/darwin/wifi-connections.js +60 -0
- package/dist/darwin/wifi-interfaces.d.ts +2 -0
- package/dist/darwin/wifi-interfaces.js +27 -0
- package/dist/darwin/wifi-networks.d.ts +2 -0
- package/dist/darwin/wifi-networks.js +61 -0
- package/dist/disk-layout.d.ts +1 -0
- package/dist/disk-layout.js +17 -0
- package/dist/disks-io.d.ts +1 -0
- package/dist/disks-io.js +17 -0
- package/dist/displays.d.ts +1 -0
- package/dist/displays.js +17 -0
- package/dist/docker-socket.d.ts +11 -0
- package/dist/docker-socket.js +113 -0
- package/dist/docker.d.ts +102 -0
- package/dist/docker.js +532 -0
- package/dist/fs-open-files.d.ts +1 -0
- package/dist/fs-open-files.js +17 -0
- package/dist/fs-size.d.ts +1 -0
- package/dist/fs-size.js +23 -0
- package/dist/fs-stats.d.ts +1 -0
- package/dist/fs-stats.js +17 -0
- package/dist/get-data.d.ts +110 -0
- package/dist/get-data.js +151 -0
- package/dist/get.d.ts +5 -0
- package/dist/get.js +117 -0
- package/dist/gpu.d.ts +1 -0
- package/dist/gpu.js +17 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.js +132 -0
- package/dist/inet-checksite.d.ts +1 -0
- package/dist/inet-checksite.js +11 -0
- package/dist/inet-latency.d.ts +1 -0
- package/dist/inet-latency.js +17 -0
- package/dist/inet-public-ip.d.ts +2 -0
- package/dist/inet-public-ip.js +10 -0
- package/dist/keyboard.d.ts +1 -0
- package/dist/keyboard.js +17 -0
- package/dist/linux/audio.d.ts +2 -0
- package/dist/linux/audio.js +67 -0
- package/dist/linux/baseboard.d.ts +1 -0
- package/dist/linux/baseboard.js +81 -0
- package/dist/linux/battery.d.ts +2 -0
- package/dist/linux/battery.js +88 -0
- package/dist/linux/bios.d.ts +2 -0
- package/dist/linux/bios.js +55 -0
- package/dist/linux/block-devices.d.ts +2 -0
- package/dist/linux/block-devices.js +30 -0
- package/dist/linux/bluetooth.d.ts +2 -0
- package/dist/linux/bluetooth.js +86 -0
- package/dist/linux/camera.d.ts +2 -0
- package/dist/linux/camera.js +63 -0
- package/dist/linux/chassis.d.ts +1 -0
- package/dist/linux/chassis.js +41 -0
- package/dist/linux/cpu-cache.d.ts +1 -0
- package/dist/linux/cpu-cache.js +35 -0
- package/dist/linux/cpu-flags.d.ts +1 -0
- package/dist/linux/cpu-flags.js +33 -0
- package/dist/linux/cpu-temperature.d.ts +1 -0
- package/dist/linux/cpu-temperature.js +179 -0
- package/dist/linux/cpu.d.ts +1 -0
- package/dist/linux/cpu.js +135 -0
- package/dist/linux/disk-layout.d.ts +2 -0
- package/dist/linux/disk-layout.js +151 -0
- package/dist/linux/disks-io.d.ts +2 -0
- package/dist/linux/disks-io.js +58 -0
- package/dist/linux/displays.d.ts +2 -0
- package/dist/linux/displays.js +193 -0
- package/dist/linux/fs-open-files.d.ts +2 -0
- package/dist/linux/fs-open-files.js +44 -0
- package/dist/linux/fs-size.d.ts +2 -0
- package/dist/linux/fs-size.js +157 -0
- package/dist/linux/fs-stats.d.ts +2 -0
- package/dist/linux/fs-stats.js +65 -0
- package/dist/linux/gpu.d.ts +15 -0
- package/dist/linux/gpu.js +383 -0
- package/dist/linux/index.d.ts +56 -0
- package/dist/linux/index.js +122 -0
- package/dist/linux/inet-latency.d.ts +1 -0
- package/dist/linux/inet-latency.js +39 -0
- package/dist/linux/keyboard.d.ts +2 -0
- package/dist/linux/keyboard.js +61 -0
- package/dist/linux/mem-layout.d.ts +2 -0
- package/dist/linux/mem-layout.js +112 -0
- package/dist/linux/mem.d.ts +2 -0
- package/dist/linux/mem.js +61 -0
- package/dist/linux/mouse.d.ts +2 -0
- package/dist/linux/mouse.js +73 -0
- package/dist/linux/network-connections.d.ts +2 -0
- package/dist/linux/network-connections.js +114 -0
- package/dist/linux/network-gateway-default.d.ts +1 -0
- package/dist/linux/network-gateway-default.js +22 -0
- package/dist/linux/network-interface-default.d.ts +2 -0
- package/dist/linux/network-interface-default.js +46 -0
- package/dist/linux/network-interfaces.d.ts +3 -0
- package/dist/linux/network-interfaces.js +353 -0
- package/dist/linux/network-stats.d.ts +2 -0
- package/dist/linux/network-stats.js +99 -0
- package/dist/linux/npm.d.ts +1 -0
- package/dist/linux/npm.js +5 -0
- package/dist/linux/npu.d.ts +2 -0
- package/dist/linux/npu.js +77 -0
- package/dist/linux/os-info.d.ts +1 -0
- package/dist/linux/os-info.js +114 -0
- package/dist/linux/pci.d.ts +2 -0
- package/dist/linux/pci.js +56 -0
- package/dist/linux/printer.d.ts +2 -0
- package/dist/linux/printer.js +80 -0
- package/dist/linux/process-load.d.ts +2 -0
- package/dist/linux/process-load.js +164 -0
- package/dist/linux/processes.d.ts +2 -0
- package/dist/linux/processes.js +358 -0
- package/dist/linux/services.d.ts +2 -0
- package/dist/linux/services.js +222 -0
- package/dist/linux/software.d.ts +2 -0
- package/dist/linux/software.js +110 -0
- package/dist/linux/system.d.ts +1 -0
- package/dist/linux/system.js +186 -0
- package/dist/linux/thunderbolt.d.ts +2 -0
- package/dist/linux/thunderbolt.js +51 -0
- package/dist/linux/time.d.ts +6 -0
- package/dist/linux/time.js +28 -0
- package/dist/linux/usb.d.ts +2 -0
- package/dist/linux/usb.js +62 -0
- package/dist/linux/users.d.ts +2 -0
- package/dist/linux/users.js +102 -0
- package/dist/linux/uuid.d.ts +2 -0
- package/dist/linux/uuid.js +44 -0
- package/dist/linux/wifi-connections.d.ts +2 -0
- package/dist/linux/wifi-connections.js +196 -0
- package/dist/linux/wifi-interfaces.d.ts +2 -0
- package/dist/linux/wifi-interfaces.js +96 -0
- package/dist/linux/wifi-networks.d.ts +2 -0
- package/dist/linux/wifi-networks.js +176 -0
- package/dist/mem-layout.d.ts +1 -0
- package/dist/mem-layout.js +17 -0
- package/dist/mem.d.ts +1 -0
- package/dist/mem.js +19 -0
- package/dist/mouse.d.ts +1 -0
- package/dist/mouse.js +17 -0
- package/dist/network-connections.d.ts +1 -0
- package/dist/network-connections.js +17 -0
- package/dist/network-gateway-default.d.ts +1 -0
- package/dist/network-gateway-default.js +17 -0
- package/dist/network-interface-default.d.ts +1 -0
- package/dist/network-interface-default.js +17 -0
- package/dist/network-interfaces.d.ts +1 -0
- package/dist/network-interfaces.js +18 -0
- package/dist/network-stats.d.ts +1 -0
- package/dist/network-stats.js +19 -0
- package/dist/npm.d.ts +2 -0
- package/dist/npm.js +22 -0
- package/dist/npu.d.ts +1 -0
- package/dist/npu.js +17 -0
- package/dist/observe.d.ts +5 -0
- package/dist/observe.js +16 -0
- package/dist/os-info.d.ts +1 -0
- package/dist/os-info.js +21 -0
- package/dist/pci.d.ts +1 -0
- package/dist/pci.js +17 -0
- package/dist/printer.d.ts +1 -0
- package/dist/printer.js +17 -0
- package/dist/process-load.d.ts +1 -0
- package/dist/process-load.js +15 -0
- package/dist/processes.d.ts +1 -0
- package/dist/processes.js +15 -0
- package/dist/services.d.ts +1 -0
- package/dist/services.js +15 -0
- package/dist/shell.d.ts +1 -0
- package/dist/shell.js +16 -0
- package/dist/software.d.ts +1 -0
- package/dist/software.js +17 -0
- package/dist/sun/index.d.ts +17 -0
- package/dist/sun/index.js +43 -0
- package/dist/sun/inet-latency.d.ts +1 -0
- package/dist/sun/inet-latency.js +30 -0
- package/dist/sun/os-info.d.ts +1 -0
- package/dist/sun/os-info.js +26 -0
- package/dist/sun/users.d.ts +2 -0
- package/dist/sun/users.js +13 -0
- package/dist/system.d.ts +1 -0
- package/dist/system.js +17 -0
- package/dist/thunderbolt.d.ts +1 -0
- package/dist/thunderbolt.js +17 -0
- package/dist/time.d.ts +6 -0
- package/dist/time.js +28 -0
- package/dist/usb.d.ts +1 -0
- package/dist/usb.js +17 -0
- package/dist/users.d.ts +1 -0
- package/dist/users.js +21 -0
- package/dist/uuid.d.ts +1 -0
- package/dist/uuid.js +19 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +16 -0
- package/dist/versions.d.ts +2 -0
- package/dist/versions.js +1150 -0
- package/dist/virtualbox.d.ts +2 -0
- package/dist/virtualbox.js +89 -0
- package/dist/wifi-connections.d.ts +1 -0
- package/dist/wifi-connections.js +17 -0
- package/dist/wifi-interfaces.d.ts +1 -0
- package/dist/wifi-interfaces.js +17 -0
- package/dist/wifi-networks.d.ts +1 -0
- package/dist/wifi-networks.js +17 -0
- package/dist/windows/audio.d.ts +2 -0
- package/dist/windows/audio.js +23 -0
- package/dist/windows/baseboard.d.ts +1 -0
- package/dist/windows/baseboard.js +35 -0
- package/dist/windows/battery.d.ts +1 -0
- package/dist/windows/battery.js +81 -0
- package/dist/windows/bios.d.ts +1 -0
- package/dist/windows/bios.js +37 -0
- package/dist/windows/block-devices.d.ts +3 -0
- package/dist/windows/block-devices.js +58 -0
- package/dist/windows/bluetooth.d.ts +2 -0
- package/dist/windows/bluetooth.js +31 -0
- package/dist/windows/camera.d.ts +2 -0
- package/dist/windows/camera.js +47 -0
- package/dist/windows/chassis.d.ts +1 -0
- package/dist/windows/chassis.js +29 -0
- package/dist/windows/cpu-cache.d.ts +2 -0
- package/dist/windows/cpu-cache.js +59 -0
- package/dist/windows/cpu-flags.d.ts +1 -0
- package/dist/windows/cpu-flags.js +61 -0
- package/dist/windows/cpu-temperature.d.ts +1 -0
- package/dist/windows/cpu-temperature.js +32 -0
- package/dist/windows/cpu.d.ts +1 -0
- package/dist/windows/cpu.js +96 -0
- package/dist/windows/disk-layout.d.ts +2 -0
- package/dist/windows/disk-layout.js +129 -0
- package/dist/windows/disks-io.d.ts +2 -0
- package/dist/windows/disks-io.js +46 -0
- package/dist/windows/displays.d.ts +2 -0
- package/dist/windows/displays.js +213 -0
- package/dist/windows/fs-open-files.d.ts +2 -0
- package/dist/windows/fs-open-files.js +22 -0
- package/dist/windows/fs-size.d.ts +2 -0
- package/dist/windows/fs-size.js +47 -0
- package/dist/windows/fs-stats.d.ts +2 -0
- package/dist/windows/fs-stats.js +37 -0
- package/dist/windows/gpu.d.ts +2 -0
- package/dist/windows/gpu.js +128 -0
- package/dist/windows/index.d.ts +56 -0
- package/dist/windows/index.js +122 -0
- package/dist/windows/inet-latency.d.ts +1 -0
- package/dist/windows/inet-latency.js +34 -0
- package/dist/windows/keyboard.d.ts +2 -0
- package/dist/windows/keyboard.js +47 -0
- package/dist/windows/mem-layout.d.ts +2 -0
- package/dist/windows/mem-layout.js +39 -0
- package/dist/windows/mem.d.ts +2 -0
- package/dist/windows/mem.js +33 -0
- package/dist/windows/mouse.d.ts +2 -0
- package/dist/windows/mouse.js +64 -0
- package/dist/windows/network-connections.d.ts +2 -0
- package/dist/windows/network-connections.js +93 -0
- package/dist/windows/network-gateway-default.d.ts +1 -0
- package/dist/windows/network-gateway-default.js +36 -0
- package/dist/windows/network-interface-default.d.ts +2 -0
- package/dist/windows/network-interface-default.js +56 -0
- package/dist/windows/network-interfaces.d.ts +2 -0
- package/dist/windows/network-interfaces.js +346 -0
- package/dist/windows/network-stats.d.ts +2 -0
- package/dist/windows/network-stats.js +135 -0
- package/dist/windows/npm.d.ts +1 -0
- package/dist/windows/npm.js +5 -0
- package/dist/windows/npu.d.ts +2 -0
- package/dist/windows/npu.js +29 -0
- package/dist/windows/os-info.d.ts +1 -0
- package/dist/windows/os-info.js +70 -0
- package/dist/windows/pci.d.ts +2 -0
- package/dist/windows/pci.js +33 -0
- package/dist/windows/printer.d.ts +2 -0
- package/dist/windows/printer.js +36 -0
- package/dist/windows/process-load.d.ts +2 -0
- package/dist/windows/process-load.js +121 -0
- package/dist/windows/processes.d.ts +9 -0
- package/dist/windows/processes.js +139 -0
- package/dist/windows/services.d.ts +2 -0
- package/dist/windows/services.js +83 -0
- package/dist/windows/shell.d.ts +1 -0
- package/dist/windows/shell.js +19 -0
- package/dist/windows/software.d.ts +2 -0
- package/dist/windows/software.js +53 -0
- package/dist/windows/system.d.ts +1 -0
- package/dist/windows/system.js +98 -0
- package/dist/windows/thunderbolt.d.ts +2 -0
- package/dist/windows/thunderbolt.js +34 -0
- package/dist/windows/usb.d.ts +2 -0
- package/dist/windows/usb.js +37 -0
- package/dist/windows/users.d.ts +2 -0
- package/dist/windows/users.js +151 -0
- package/dist/windows/uuid.d.ts +2 -0
- package/dist/windows/uuid.js +28 -0
- package/dist/windows/wifi-connections.d.ts +2 -0
- package/dist/windows/wifi-connections.js +56 -0
- package/dist/windows/wifi-interfaces.d.ts +2 -0
- package/dist/windows/wifi-interfaces.js +45 -0
- package/dist/windows/wifi-networks.d.ts +2 -0
- package/dist/windows/wifi-networks.js +50 -0
- package/package.json +78 -12
- package/lib/audio.js +0 -277
- package/lib/battery.js +0 -334
- package/lib/bluetooth.js +0 -315
- package/lib/bluetoothVendors.js +0 -1138
- package/lib/cli.js +0 -100
- package/lib/cpu.js +0 -2285
- package/lib/docker.js +0 -791
- package/lib/dockerSocket.js +0 -117
- package/lib/filesystem.js +0 -1849
- package/lib/graphics.js +0 -1321
- package/lib/index.d.ts +0 -1051
- package/lib/index.js +0 -520
- package/lib/internet.js +0 -259
- package/lib/memory.js +0 -622
- package/lib/network.js +0 -2008
- package/lib/osinfo.js +0 -1322
- package/lib/printer.js +0 -209
- package/lib/processes.js +0 -1459
- package/lib/system.js +0 -855
- package/lib/usb.js +0 -309
- package/lib/users.js +0 -412
- package/lib/util.js +0 -2833
- package/lib/virtualbox.js +0 -116
- package/lib/wifi.js +0 -839
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initNetworkSpeed = exports.initPciData = exports.initNpuData = exports.initNetworkInterface = exports.initProcesses = exports.initDisplay = exports.initDiskIo = exports.initFsStats = exports.initFsBlockDevice = exports.initFsOpenFiles = exports.initSystem = exports.initBios = exports.initBaseboard = exports.initChassis = exports.initUUID = exports.initOsInfo = exports.initMemData = exports.initCheckSite = exports.initCpuTemperature = exports.initCpuCacheResult = exports.initCpuResult = exports.initUsbResult = exports.initAudioResult = exports.initBatteryResult = void 0;
|
|
4
|
+
const node_os_1 = require("node:os");
|
|
5
|
+
const acceleration_1 = require("./acceleration");
|
|
6
|
+
const const_1 = require("./const");
|
|
7
|
+
const host_1 = require("./host");
|
|
8
|
+
exports.initBatteryResult = {
|
|
9
|
+
cycleCount: null,
|
|
10
|
+
isCharging: false,
|
|
11
|
+
designedCapacity: null,
|
|
12
|
+
maxCapacity: null,
|
|
13
|
+
currentCapacity: 0,
|
|
14
|
+
voltage: 0,
|
|
15
|
+
capacityUnit: '',
|
|
16
|
+
percent: 0,
|
|
17
|
+
timeRemaining: null,
|
|
18
|
+
acConnected: true,
|
|
19
|
+
type: '',
|
|
20
|
+
model: '',
|
|
21
|
+
manufacturer: '',
|
|
22
|
+
serial: ''
|
|
23
|
+
};
|
|
24
|
+
exports.initAudioResult = {
|
|
25
|
+
id: '',
|
|
26
|
+
name: '',
|
|
27
|
+
manufacturer: '',
|
|
28
|
+
revision: null,
|
|
29
|
+
driver: null,
|
|
30
|
+
default: null,
|
|
31
|
+
channel: null,
|
|
32
|
+
type: '',
|
|
33
|
+
in: null,
|
|
34
|
+
out: null,
|
|
35
|
+
status: ''
|
|
36
|
+
};
|
|
37
|
+
exports.initUsbResult = {
|
|
38
|
+
id: null,
|
|
39
|
+
bus: null,
|
|
40
|
+
deviceId: null,
|
|
41
|
+
name: null,
|
|
42
|
+
type: null,
|
|
43
|
+
removable: null,
|
|
44
|
+
vendor: null,
|
|
45
|
+
manufacturer: null,
|
|
46
|
+
maxPower: null,
|
|
47
|
+
serialNumber: null
|
|
48
|
+
};
|
|
49
|
+
exports.initCpuResult = {
|
|
50
|
+
manufacturer: const_1.UNKNOWN,
|
|
51
|
+
brand: const_1.UNKNOWN,
|
|
52
|
+
vendor: '',
|
|
53
|
+
family: '',
|
|
54
|
+
model: '',
|
|
55
|
+
stepping: '',
|
|
56
|
+
revision: '',
|
|
57
|
+
voltage: '',
|
|
58
|
+
speed: 0,
|
|
59
|
+
speedMin: 0,
|
|
60
|
+
speedMax: 0,
|
|
61
|
+
governor: '',
|
|
62
|
+
cores: (0, node_os_1.cpus)().length,
|
|
63
|
+
physicalCores: (0, node_os_1.cpus)().length,
|
|
64
|
+
performanceCores: (0, node_os_1.cpus)().length,
|
|
65
|
+
efficiencyCores: 0,
|
|
66
|
+
processors: 1,
|
|
67
|
+
socket: '',
|
|
68
|
+
flags: '',
|
|
69
|
+
virtualization: false,
|
|
70
|
+
cache: null
|
|
71
|
+
};
|
|
72
|
+
exports.initCpuCacheResult = {
|
|
73
|
+
l1d: null,
|
|
74
|
+
l1i: null,
|
|
75
|
+
l2: null,
|
|
76
|
+
l3: null
|
|
77
|
+
};
|
|
78
|
+
exports.initCpuTemperature = {
|
|
79
|
+
main: null,
|
|
80
|
+
cores: [],
|
|
81
|
+
max: null,
|
|
82
|
+
socket: [],
|
|
83
|
+
chipset: null
|
|
84
|
+
};
|
|
85
|
+
exports.initCheckSite = {
|
|
86
|
+
url: '',
|
|
87
|
+
ok: false,
|
|
88
|
+
status: 404,
|
|
89
|
+
ms: 0
|
|
90
|
+
};
|
|
91
|
+
exports.initMemData = {
|
|
92
|
+
total: (0, node_os_1.totalmem)(),
|
|
93
|
+
free: (0, node_os_1.freemem)(),
|
|
94
|
+
used: (0, node_os_1.totalmem)() - (0, node_os_1.freemem)(),
|
|
95
|
+
active: (0, node_os_1.totalmem)() - (0, node_os_1.freemem)(),
|
|
96
|
+
available: (0, node_os_1.freemem)(),
|
|
97
|
+
buffers: 0,
|
|
98
|
+
cached: 0,
|
|
99
|
+
slab: 0,
|
|
100
|
+
buffcache: 0,
|
|
101
|
+
reclaimable: 0,
|
|
102
|
+
swaptotal: 0,
|
|
103
|
+
swapused: 0,
|
|
104
|
+
swapfree: 0,
|
|
105
|
+
writeback: 0,
|
|
106
|
+
dirty: 0
|
|
107
|
+
};
|
|
108
|
+
const initOsInfo = async () => {
|
|
109
|
+
return {
|
|
110
|
+
platform: const_1.PLATFORM === 'win32' ? 'windows' : const_1.PLATFORM,
|
|
111
|
+
distro: 'unknown',
|
|
112
|
+
release: 'unknown',
|
|
113
|
+
codename: '',
|
|
114
|
+
kernel: (0, node_os_1.release)(),
|
|
115
|
+
arch: (0, node_os_1.arch)(),
|
|
116
|
+
hostname: (0, node_os_1.hostname)(),
|
|
117
|
+
fqdn: await (0, host_1.getFQDN)(),
|
|
118
|
+
codepage: '',
|
|
119
|
+
logofile: '',
|
|
120
|
+
serial: '',
|
|
121
|
+
build: '',
|
|
122
|
+
servicepack: '',
|
|
123
|
+
uefi: false,
|
|
124
|
+
installDate: null,
|
|
125
|
+
lastUpdate: null,
|
|
126
|
+
displayServer: '',
|
|
127
|
+
awake: true,
|
|
128
|
+
hwAcceleration: await (0, acceleration_1.hwAcceleration)()
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
exports.initOsInfo = initOsInfo;
|
|
132
|
+
exports.initUUID = {
|
|
133
|
+
os: '',
|
|
134
|
+
hardware: '',
|
|
135
|
+
macs: (0, host_1.getUniqueMacAddresses)(),
|
|
136
|
+
disks: []
|
|
137
|
+
};
|
|
138
|
+
exports.initChassis = {
|
|
139
|
+
manufacturer: '',
|
|
140
|
+
model: '',
|
|
141
|
+
type: '',
|
|
142
|
+
version: '',
|
|
143
|
+
serial: '-',
|
|
144
|
+
assetTag: '-',
|
|
145
|
+
sku: ''
|
|
146
|
+
};
|
|
147
|
+
exports.initBaseboard = {
|
|
148
|
+
manufacturer: '',
|
|
149
|
+
model: '',
|
|
150
|
+
version: '',
|
|
151
|
+
serial: '-',
|
|
152
|
+
assetTag: '-',
|
|
153
|
+
memMax: null,
|
|
154
|
+
memSlots: null
|
|
155
|
+
};
|
|
156
|
+
exports.initBios = {
|
|
157
|
+
vendor: '',
|
|
158
|
+
version: '',
|
|
159
|
+
releaseDate: '',
|
|
160
|
+
revision: ''
|
|
161
|
+
};
|
|
162
|
+
exports.initSystem = {
|
|
163
|
+
manufacturer: '',
|
|
164
|
+
model: 'Computer',
|
|
165
|
+
version: '',
|
|
166
|
+
serial: '-',
|
|
167
|
+
uuid: '-',
|
|
168
|
+
sku: '-',
|
|
169
|
+
virtual: false
|
|
170
|
+
};
|
|
171
|
+
exports.initFsOpenFiles = {
|
|
172
|
+
max: null,
|
|
173
|
+
allocated: null,
|
|
174
|
+
available: null
|
|
175
|
+
};
|
|
176
|
+
exports.initFsBlockDevice = {
|
|
177
|
+
name: '',
|
|
178
|
+
identifier: '',
|
|
179
|
+
type: 'disk',
|
|
180
|
+
fsType: '',
|
|
181
|
+
mount: '',
|
|
182
|
+
size: 0,
|
|
183
|
+
physical: 'HDD',
|
|
184
|
+
uuid: '',
|
|
185
|
+
guid: '',
|
|
186
|
+
label: '',
|
|
187
|
+
model: '',
|
|
188
|
+
serial: '',
|
|
189
|
+
removable: false,
|
|
190
|
+
protocol: '',
|
|
191
|
+
group: '',
|
|
192
|
+
device: ''
|
|
193
|
+
};
|
|
194
|
+
exports.initFsStats = {
|
|
195
|
+
rx: 0,
|
|
196
|
+
wx: 0,
|
|
197
|
+
tx: 0,
|
|
198
|
+
rx_sec: null,
|
|
199
|
+
wx_sec: null,
|
|
200
|
+
tx_sec: null,
|
|
201
|
+
ms: 0
|
|
202
|
+
};
|
|
203
|
+
exports.initDiskIo = {
|
|
204
|
+
rIO: 0,
|
|
205
|
+
wIO: 0,
|
|
206
|
+
tIO: 0,
|
|
207
|
+
rIO_sec: null,
|
|
208
|
+
wIO_sec: null,
|
|
209
|
+
tIO_sec: null,
|
|
210
|
+
rWaitTime: 0,
|
|
211
|
+
wWaitTime: 0,
|
|
212
|
+
tWaitTime: 0,
|
|
213
|
+
rWaitPercent: null,
|
|
214
|
+
wWaitPercent: null,
|
|
215
|
+
tWaitPercent: null,
|
|
216
|
+
ms: 0
|
|
217
|
+
};
|
|
218
|
+
exports.initDisplay = {
|
|
219
|
+
vendor: '',
|
|
220
|
+
vendorId: '',
|
|
221
|
+
model: '',
|
|
222
|
+
productionYear: null,
|
|
223
|
+
serial: null,
|
|
224
|
+
deviceName: '',
|
|
225
|
+
displayId: null,
|
|
226
|
+
main: false,
|
|
227
|
+
builtin: false,
|
|
228
|
+
connection: '',
|
|
229
|
+
sizeX: null,
|
|
230
|
+
sizeY: null,
|
|
231
|
+
pixelDepth: null,
|
|
232
|
+
resolutionX: null,
|
|
233
|
+
resolutionY: null,
|
|
234
|
+
currentResX: null,
|
|
235
|
+
currentResY: null,
|
|
236
|
+
positionX: 0,
|
|
237
|
+
positionY: 0,
|
|
238
|
+
currentRefreshRate: null
|
|
239
|
+
};
|
|
240
|
+
exports.initProcesses = {
|
|
241
|
+
all: 0,
|
|
242
|
+
running: 0,
|
|
243
|
+
blocked: 0,
|
|
244
|
+
sleeping: 0,
|
|
245
|
+
unknown: 0,
|
|
246
|
+
list: []
|
|
247
|
+
};
|
|
248
|
+
exports.initNetworkInterface = {
|
|
249
|
+
iface: '',
|
|
250
|
+
ifaceName: '',
|
|
251
|
+
default: false,
|
|
252
|
+
ip4: '',
|
|
253
|
+
ip4subnet: '',
|
|
254
|
+
ip6: '',
|
|
255
|
+
ip6subnet: '',
|
|
256
|
+
mac: '',
|
|
257
|
+
internal: true,
|
|
258
|
+
virtual: false,
|
|
259
|
+
operstate: 'down',
|
|
260
|
+
type: '',
|
|
261
|
+
duplex: '',
|
|
262
|
+
mtu: 0,
|
|
263
|
+
speed: 0,
|
|
264
|
+
dhcp: false,
|
|
265
|
+
dnsSuffix: '',
|
|
266
|
+
ieee8021xAuth: '',
|
|
267
|
+
ieee8021xState: '',
|
|
268
|
+
carrierChanges: 0
|
|
269
|
+
};
|
|
270
|
+
exports.initNpuData = {
|
|
271
|
+
vendor: '',
|
|
272
|
+
name: '',
|
|
273
|
+
model: '',
|
|
274
|
+
cores: null,
|
|
275
|
+
vendorId: '',
|
|
276
|
+
deviceId: '',
|
|
277
|
+
driver: ''
|
|
278
|
+
};
|
|
279
|
+
exports.initPciData = {
|
|
280
|
+
slot: '',
|
|
281
|
+
bus: '',
|
|
282
|
+
type: '',
|
|
283
|
+
vendor: '',
|
|
284
|
+
vendorId: '',
|
|
285
|
+
model: '',
|
|
286
|
+
deviceId: '',
|
|
287
|
+
subVendorId: '',
|
|
288
|
+
subDeviceId: '',
|
|
289
|
+
revision: '',
|
|
290
|
+
driver: ''
|
|
291
|
+
};
|
|
292
|
+
exports.initNetworkSpeed = {
|
|
293
|
+
iface: '',
|
|
294
|
+
operstate: '',
|
|
295
|
+
rx_bytes: 0,
|
|
296
|
+
rx_dropped: 0,
|
|
297
|
+
rx_errors: 0,
|
|
298
|
+
tx_bytes: 0,
|
|
299
|
+
tx_dropped: 0,
|
|
300
|
+
tx_errors: 0,
|
|
301
|
+
rx_sec: null,
|
|
302
|
+
tx_sec: null,
|
|
303
|
+
ms: 0
|
|
304
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { execFile as execFileFunction, exec as execFunction } from 'node:child_process';
|
|
2
|
+
export declare const exec: typeof execFunction.__promisify__;
|
|
3
|
+
export declare const execFile: typeof execFileFunction.__promisify__;
|
|
4
|
+
export declare const shareInflight: <T>(key: string, fn: () => Promise<T>) => Promise<T>;
|
|
5
|
+
export declare const execSecure: (cmd: string, args: any, options?: any) => Promise<string>;
|
|
6
|
+
export declare const timeout: (ms: number) => Promise<unknown>;
|
|
7
|
+
export declare const execSave: (cmd: string, options?: any) => Promise<{
|
|
8
|
+
stdout: string;
|
|
9
|
+
stderr: string;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.execSave = exports.timeout = exports.execSecure = exports.shareInflight = exports.execFile = exports.exec = void 0;
|
|
4
|
+
const node_child_process_1 = require("node:child_process");
|
|
5
|
+
const node_util_1 = require("node:util");
|
|
6
|
+
exports.exec = (0, node_util_1.promisify)(node_child_process_1.exec);
|
|
7
|
+
exports.execFile = (0, node_util_1.promisify)(node_child_process_1.execFile);
|
|
8
|
+
const _inflight = new Map();
|
|
9
|
+
const shareInflight = (key, fn) => {
|
|
10
|
+
if (!_inflight.has(key)) {
|
|
11
|
+
_inflight.set(key, fn().finally(() => {
|
|
12
|
+
_inflight.delete(key);
|
|
13
|
+
}));
|
|
14
|
+
}
|
|
15
|
+
return _inflight.get(key);
|
|
16
|
+
};
|
|
17
|
+
exports.shareInflight = shareInflight;
|
|
18
|
+
const execSecure = (cmd, args, options) => {
|
|
19
|
+
let result = '';
|
|
20
|
+
options = options || {};
|
|
21
|
+
return new Promise((resolve) => {
|
|
22
|
+
process.nextTick(() => {
|
|
23
|
+
try {
|
|
24
|
+
const child = (0, node_child_process_1.spawn)(cmd, args, options);
|
|
25
|
+
if (child && !child.pid) {
|
|
26
|
+
child.on('error', () => {
|
|
27
|
+
resolve(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
if (child?.pid) {
|
|
31
|
+
child.stdout.on('data', (data) => {
|
|
32
|
+
result += data.toString();
|
|
33
|
+
});
|
|
34
|
+
child.on('close', () => {
|
|
35
|
+
child.kill();
|
|
36
|
+
resolve(result);
|
|
37
|
+
});
|
|
38
|
+
child.on('error', () => {
|
|
39
|
+
child.kill();
|
|
40
|
+
resolve(result);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
resolve(result);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
catch {
|
|
48
|
+
resolve(result);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.execSecure = execSecure;
|
|
54
|
+
const timeout = (ms) => {
|
|
55
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
56
|
+
};
|
|
57
|
+
exports.timeout = timeout;
|
|
58
|
+
const execSave = async (cmd, options = {}) => {
|
|
59
|
+
let stdout;
|
|
60
|
+
let stderr;
|
|
61
|
+
try {
|
|
62
|
+
({ stdout, stderr } = await (0, exports.exec)(cmd, options));
|
|
63
|
+
return { stdout: stdout.toString(), stderr: stderr.toString() };
|
|
64
|
+
}
|
|
65
|
+
catch (e) {
|
|
66
|
+
return { stdout: e.stdout, stderr: e.stderr };
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
exports.execSave = execSave;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fileExists = exports.getFilesInPath = void 0;
|
|
4
|
+
const fs_1 = require("fs");
|
|
5
|
+
const promises_1 = require("fs/promises");
|
|
6
|
+
const path_1 = require("path");
|
|
7
|
+
const getFilesInPath = async (source) => {
|
|
8
|
+
const fetchedFiles = [];
|
|
9
|
+
try {
|
|
10
|
+
const files = await (0, promises_1.readdir)(source);
|
|
11
|
+
for (const file of files) {
|
|
12
|
+
try {
|
|
13
|
+
const filepath = (0, path_1.join)(source, file);
|
|
14
|
+
const stats = await (0, promises_1.lstat)(filepath);
|
|
15
|
+
if (stats.isFile()) {
|
|
16
|
+
fetchedFiles.push(filepath);
|
|
17
|
+
}
|
|
18
|
+
if (stats.isDirectory()) {
|
|
19
|
+
const childFiles = await (0, promises_1.readdir)(filepath);
|
|
20
|
+
files.push(...childFiles.map((f) => (0, path_1.join)(file, f)));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
catch { }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
catch { }
|
|
27
|
+
return fetchedFiles;
|
|
28
|
+
};
|
|
29
|
+
exports.getFilesInPath = getFilesInPath;
|
|
30
|
+
const fileExists = async (file) => {
|
|
31
|
+
try {
|
|
32
|
+
await (0, promises_1.access)(file, fs_1.constants.F_OK);
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
catch {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.fileExists = fileExists;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FsBlockDevicesData } from './types';
|
|
2
|
+
export declare const smartMonToolsInstalled: () => Promise<boolean>;
|
|
3
|
+
export declare const _fs_speed: any;
|
|
4
|
+
export declare const calcFsSpeed: (rx: number, wx: number) => any;
|
|
5
|
+
export declare const _disk_io: any;
|
|
6
|
+
export declare const calcDiskIO: (rIO: number, wIO: number, rWaitTime: number, wWaitTime: number, tWaitTime: number) => any;
|
|
7
|
+
export declare const blkStdoutToObject: (stdout: string) => string;
|
|
8
|
+
export declare const parseLinuxBlk: (lines: string[]) => FsBlockDevicesData[];
|
|
9
|
+
export declare const raidMatchLinux: (data: FsBlockDevicesData[]) => Promise<FsBlockDevicesData[]>;
|
|
10
|
+
export declare const matchDevicesLinux: (data: FsBlockDevicesData[]) => FsBlockDevicesData[];
|
|
11
|
+
export declare const matchDevicesWin: (data: FsBlockDevicesData[], diskDrives: string[]) => FsBlockDevicesData[];
|