systeminformation 5.33.3 → 6.0.0-beta.0
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 -957
- 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 +21 -0
- package/dist/bsd/os-info.js +38 -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/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 +299 -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 +1 -0
- package/dist/common/internet.js +47 -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 +992 -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 +1 -0
- package/dist/darwin/os-info.js +110 -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 +59 -0
- package/dist/index.js +130 -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/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 +2 -0
- package/dist/linux/gpu.js +273 -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 +104 -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 +1122 -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 +2 -0
- package/dist/windows/block-devices.js +48 -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 +112 -0
- package/dist/windows/disks-io.d.ts +2 -0
- package/dist/windows/disks-io.js +43 -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 +65 -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 -1832
- 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 -1321
- 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 -2824
- package/lib/virtualbox.js +0 -116
- package/lib/wifi.js +0 -839
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fsStats = void 0;
|
|
4
|
+
const defaults_1 = require("../common/defaults");
|
|
5
|
+
const index_1 = require("../common/index");
|
|
6
|
+
const exec_1 = require("../common/exec");
|
|
7
|
+
const common_1 = require("../common");
|
|
8
|
+
const filesys_1 = require("../common/filesys");
|
|
9
|
+
const const_1 = require("../common/const");
|
|
10
|
+
const fsStats = async () => {
|
|
11
|
+
await (0, common_1.nextTick)();
|
|
12
|
+
if ((filesys_1._fs_speed && !filesys_1._fs_speed.ms) || (filesys_1._fs_speed && filesys_1._fs_speed.ms && Date.now() - filesys_1._fs_speed.ms >= 500)) {
|
|
13
|
+
const defaults = (0, index_1.cloneObj)(defaults_1.initFsStats);
|
|
14
|
+
let rx = 0;
|
|
15
|
+
let wx = 0;
|
|
16
|
+
try {
|
|
17
|
+
const { stdout } = await (0, exec_1.exec)('ioreg -c IOBlockStorageDriver -k Statistics -r -w0 | sed -n "/IOBlockStorageDriver/,/Statistics/p" | grep "Statistics" | tr -cd "01234567890,\n"', {
|
|
18
|
+
maxBuffer: const_1.MAX_BUFFER_SIZE
|
|
19
|
+
});
|
|
20
|
+
const lines = stdout.toString().split('\n');
|
|
21
|
+
lines.forEach(function (line) {
|
|
22
|
+
line = line.trim();
|
|
23
|
+
if (line !== '') {
|
|
24
|
+
const lineParts = line.split(',');
|
|
25
|
+
rx += (0, common_1.toInt)(lineParts[2]);
|
|
26
|
+
wx += (0, common_1.toInt)(lineParts[9]);
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return (0, filesys_1.calcFsSpeed)(rx, wx);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return defaults;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
return {
|
|
37
|
+
ms: filesys_1._fs_speed.last_ms,
|
|
38
|
+
rx: filesys_1._fs_speed.bytes_read,
|
|
39
|
+
wx: filesys_1._fs_speed.bytes_write,
|
|
40
|
+
tx: filesys_1._fs_speed.bytes_read + filesys_1._fs_speed.bytes_write,
|
|
41
|
+
rx_sec: filesys_1._fs_speed.rx_sec,
|
|
42
|
+
wx_sec: filesys_1._fs_speed.wx_sec,
|
|
43
|
+
tx_sec: filesys_1._fs_speed.tx_sec
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.fsStats = fsStats;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.gpu = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
const darwin_1 = require("../common/darwin");
|
|
6
|
+
const exec_1 = require("../common/exec");
|
|
7
|
+
const mappings_1 = require("../common/mappings");
|
|
8
|
+
const parseControllersDarwin = (graphicsArr) => {
|
|
9
|
+
const controllers = [];
|
|
10
|
+
try {
|
|
11
|
+
graphicsArr.forEach((item) => {
|
|
12
|
+
const bus = (item.sppci_bus || '').indexOf('builtin') > -1 ? 'Built-In' : (item.sppci_bus || '').indexOf('pcie') > -1 ? 'PCIe' : '';
|
|
13
|
+
const vram = (parseInt(item.spdisplays_vram || '', 10) || 0) * ((item.spdisplays_vram || '').indexOf('GB') > -1 ? 1024 : 1);
|
|
14
|
+
const vramDyn = (parseInt(item.spdisplays_vram_shared || '', 10) || 0) * ((item.spdisplays_vram_shared || '').indexOf('GB') > -1 ? 1024 : 1);
|
|
15
|
+
const metalVersion = (0, mappings_1.graphicsMetalVersion)(item.spdisplays_metal || item.spdisplays_metalfamily || '');
|
|
16
|
+
controllers.push({
|
|
17
|
+
vendor: (0, mappings_1.graphicsModelToVendor)(item.spdisplays_vendor || '') || item.spdisplays_vendor || '',
|
|
18
|
+
model: item.sppci_model || '',
|
|
19
|
+
bus,
|
|
20
|
+
vramDynamic: bus === 'Built-In',
|
|
21
|
+
vram: vram || vramDyn || null,
|
|
22
|
+
deviceId: item['spdisplays_device-id'] || '',
|
|
23
|
+
vendorId: item['spdisplays_vendor-id'] || (0, mappings_1.graphicsVendorToId)((item['spdisplays_vendor'] || '') + (item.sppci_model || '')),
|
|
24
|
+
external: item.sppci_device_type === 'spdisplays_egpu',
|
|
25
|
+
cores: item['sppci_cores'] || null,
|
|
26
|
+
metalVersion
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
catch { }
|
|
31
|
+
return controllers;
|
|
32
|
+
};
|
|
33
|
+
const gpu = async () => {
|
|
34
|
+
await (0, common_1.nextTick)();
|
|
35
|
+
let result = [];
|
|
36
|
+
try {
|
|
37
|
+
const { stdout } = await (0, exec_1.shareInflight)('SPDisplaysDataType', () => (0, exec_1.exec)('system_profiler -xml -detailLevel full SPDisplaysDataType'));
|
|
38
|
+
result = parseControllersDarwin((0, darwin_1.plistParser)(stdout));
|
|
39
|
+
try {
|
|
40
|
+
const macosTemp = require('macos-temperature-sensor');
|
|
41
|
+
const temps = macosTemp.temperature();
|
|
42
|
+
if (temps && temps.gpu) {
|
|
43
|
+
for (const controller of result) {
|
|
44
|
+
if (controller.bus === 'Built-In') {
|
|
45
|
+
controller.temperatureGpu = Math.round(temps.gpu * 100) / 100;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
catch { }
|
|
51
|
+
}
|
|
52
|
+
catch { }
|
|
53
|
+
return result;
|
|
54
|
+
};
|
|
55
|
+
exports.gpu = gpu;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export { audio } from './audio';
|
|
2
|
+
export { baseboard } from './baseboard';
|
|
3
|
+
export { battery } from './battery';
|
|
4
|
+
export { bios } from './bios';
|
|
5
|
+
export { blockDevices } from './block-devices';
|
|
6
|
+
export { bluetoothDevices } from './bluetooth';
|
|
7
|
+
export { camera } from './camera';
|
|
8
|
+
export { chassis } from './chassis';
|
|
9
|
+
export { cpu } from './cpu';
|
|
10
|
+
export { cpuCache } from './cpu-cache';
|
|
11
|
+
export { cpuCurrentSpeed } from '../cpu-current-speed';
|
|
12
|
+
export { cpuFlags } from './cpu-flags';
|
|
13
|
+
export { cpuTemperature } from './cpu-temperature';
|
|
14
|
+
export { currentLoad } from '../cpu-current-load';
|
|
15
|
+
export { diskLayout } from './disk-layout';
|
|
16
|
+
export { disksIO } from './disks-io';
|
|
17
|
+
export { displays } from './displays';
|
|
18
|
+
export { dockerInfo, dockerImages, dockerContainers, dockerContainerStats, dockerContainerProcesses, dockerVolumes, dockerAll } from '../docker';
|
|
19
|
+
export { fsOpenFiles } from './fs-open-files';
|
|
20
|
+
export { fsSize } from '../linux/fs-size';
|
|
21
|
+
export { fsStats } from './fs-stats';
|
|
22
|
+
export { fullLoad } from '../cpu-full-load';
|
|
23
|
+
export { gpu } from './gpu';
|
|
24
|
+
export { inetChecksite } from '../inet-checksite';
|
|
25
|
+
export { inetLatency } from '../linux/inet-latency';
|
|
26
|
+
export { keyboard } from './keyboard';
|
|
27
|
+
export { mem } from './mem';
|
|
28
|
+
export { memLayout } from './mem-layout';
|
|
29
|
+
export { mouse } from './mouse';
|
|
30
|
+
export { networkConnections } from './network-connections';
|
|
31
|
+
export { networkGatewayDefault } from './network-gateway-default';
|
|
32
|
+
export { networkInterfaceDefault } from './network-interface-default';
|
|
33
|
+
export { networkInterfaces } from './network-interfaces';
|
|
34
|
+
export { networkStats } from './network-stats';
|
|
35
|
+
export { npm } from './npm';
|
|
36
|
+
export { npu } from './npu';
|
|
37
|
+
export { osInfo } from './os-info';
|
|
38
|
+
export { pci } from './pci';
|
|
39
|
+
export { printer } from './printer';
|
|
40
|
+
export { processes } from '../linux/processes';
|
|
41
|
+
export { processLoad } from '../linux/process-load';
|
|
42
|
+
export { services } from '../linux/services';
|
|
43
|
+
export { shell } from '../shell';
|
|
44
|
+
export { software } from './software';
|
|
45
|
+
export { system } from './system';
|
|
46
|
+
export { thunderbolt } from './thunderbolt';
|
|
47
|
+
export { time } from '../time';
|
|
48
|
+
export { usb } from './usb';
|
|
49
|
+
export { users } from './users';
|
|
50
|
+
export { uuid } from './uuid';
|
|
51
|
+
export { vboxInfo } from '../virtualbox';
|
|
52
|
+
export { version } from '../version';
|
|
53
|
+
export { versions } from '../versions';
|
|
54
|
+
export { wifiConnections } from './wifi-connections';
|
|
55
|
+
export { wifiInterfaces } from './wifi-interfaces';
|
|
56
|
+
export { wifiNetworks } from './wifi-networks';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.software = exports.shell = exports.services = exports.processLoad = exports.processes = exports.printer = exports.pci = exports.osInfo = exports.npu = exports.npm = exports.networkStats = exports.networkInterfaces = exports.networkInterfaceDefault = exports.networkGatewayDefault = exports.networkConnections = exports.mouse = exports.memLayout = exports.mem = exports.keyboard = exports.inetLatency = exports.inetChecksite = exports.gpu = exports.fullLoad = exports.fsStats = exports.fsSize = exports.fsOpenFiles = exports.dockerAll = exports.dockerVolumes = exports.dockerContainerProcesses = exports.dockerContainerStats = exports.dockerContainers = exports.dockerImages = exports.dockerInfo = exports.displays = exports.disksIO = exports.diskLayout = exports.currentLoad = exports.cpuTemperature = exports.cpuFlags = exports.cpuCurrentSpeed = exports.cpuCache = exports.cpu = exports.chassis = exports.camera = exports.bluetoothDevices = exports.blockDevices = exports.bios = exports.battery = exports.baseboard = exports.audio = void 0;
|
|
4
|
+
exports.wifiNetworks = exports.wifiInterfaces = exports.wifiConnections = exports.versions = exports.version = exports.vboxInfo = exports.uuid = exports.users = exports.usb = exports.time = exports.thunderbolt = exports.system = void 0;
|
|
5
|
+
var audio_1 = require("./audio");
|
|
6
|
+
Object.defineProperty(exports, "audio", { enumerable: true, get: function () { return audio_1.audio; } });
|
|
7
|
+
var baseboard_1 = require("./baseboard");
|
|
8
|
+
Object.defineProperty(exports, "baseboard", { enumerable: true, get: function () { return baseboard_1.baseboard; } });
|
|
9
|
+
var battery_1 = require("./battery");
|
|
10
|
+
Object.defineProperty(exports, "battery", { enumerable: true, get: function () { return battery_1.battery; } });
|
|
11
|
+
var bios_1 = require("./bios");
|
|
12
|
+
Object.defineProperty(exports, "bios", { enumerable: true, get: function () { return bios_1.bios; } });
|
|
13
|
+
var block_devices_1 = require("./block-devices");
|
|
14
|
+
Object.defineProperty(exports, "blockDevices", { enumerable: true, get: function () { return block_devices_1.blockDevices; } });
|
|
15
|
+
var bluetooth_1 = require("./bluetooth");
|
|
16
|
+
Object.defineProperty(exports, "bluetoothDevices", { enumerable: true, get: function () { return bluetooth_1.bluetoothDevices; } });
|
|
17
|
+
var camera_1 = require("./camera");
|
|
18
|
+
Object.defineProperty(exports, "camera", { enumerable: true, get: function () { return camera_1.camera; } });
|
|
19
|
+
var chassis_1 = require("./chassis");
|
|
20
|
+
Object.defineProperty(exports, "chassis", { enumerable: true, get: function () { return chassis_1.chassis; } });
|
|
21
|
+
var cpu_1 = require("./cpu");
|
|
22
|
+
Object.defineProperty(exports, "cpu", { enumerable: true, get: function () { return cpu_1.cpu; } });
|
|
23
|
+
var cpu_cache_1 = require("./cpu-cache");
|
|
24
|
+
Object.defineProperty(exports, "cpuCache", { enumerable: true, get: function () { return cpu_cache_1.cpuCache; } });
|
|
25
|
+
var cpu_current_speed_1 = require("../cpu-current-speed");
|
|
26
|
+
Object.defineProperty(exports, "cpuCurrentSpeed", { enumerable: true, get: function () { return cpu_current_speed_1.cpuCurrentSpeed; } });
|
|
27
|
+
var cpu_flags_1 = require("./cpu-flags");
|
|
28
|
+
Object.defineProperty(exports, "cpuFlags", { enumerable: true, get: function () { return cpu_flags_1.cpuFlags; } });
|
|
29
|
+
var cpu_temperature_1 = require("./cpu-temperature");
|
|
30
|
+
Object.defineProperty(exports, "cpuTemperature", { enumerable: true, get: function () { return cpu_temperature_1.cpuTemperature; } });
|
|
31
|
+
var cpu_current_load_1 = require("../cpu-current-load");
|
|
32
|
+
Object.defineProperty(exports, "currentLoad", { enumerable: true, get: function () { return cpu_current_load_1.currentLoad; } });
|
|
33
|
+
var disk_layout_1 = require("./disk-layout");
|
|
34
|
+
Object.defineProperty(exports, "diskLayout", { enumerable: true, get: function () { return disk_layout_1.diskLayout; } });
|
|
35
|
+
var disks_io_1 = require("./disks-io");
|
|
36
|
+
Object.defineProperty(exports, "disksIO", { enumerable: true, get: function () { return disks_io_1.disksIO; } });
|
|
37
|
+
var displays_1 = require("./displays");
|
|
38
|
+
Object.defineProperty(exports, "displays", { enumerable: true, get: function () { return displays_1.displays; } });
|
|
39
|
+
var docker_1 = require("../docker");
|
|
40
|
+
Object.defineProperty(exports, "dockerInfo", { enumerable: true, get: function () { return docker_1.dockerInfo; } });
|
|
41
|
+
Object.defineProperty(exports, "dockerImages", { enumerable: true, get: function () { return docker_1.dockerImages; } });
|
|
42
|
+
Object.defineProperty(exports, "dockerContainers", { enumerable: true, get: function () { return docker_1.dockerContainers; } });
|
|
43
|
+
Object.defineProperty(exports, "dockerContainerStats", { enumerable: true, get: function () { return docker_1.dockerContainerStats; } });
|
|
44
|
+
Object.defineProperty(exports, "dockerContainerProcesses", { enumerable: true, get: function () { return docker_1.dockerContainerProcesses; } });
|
|
45
|
+
Object.defineProperty(exports, "dockerVolumes", { enumerable: true, get: function () { return docker_1.dockerVolumes; } });
|
|
46
|
+
Object.defineProperty(exports, "dockerAll", { enumerable: true, get: function () { return docker_1.dockerAll; } });
|
|
47
|
+
var fs_open_files_1 = require("./fs-open-files");
|
|
48
|
+
Object.defineProperty(exports, "fsOpenFiles", { enumerable: true, get: function () { return fs_open_files_1.fsOpenFiles; } });
|
|
49
|
+
var fs_size_1 = require("../linux/fs-size");
|
|
50
|
+
Object.defineProperty(exports, "fsSize", { enumerable: true, get: function () { return fs_size_1.fsSize; } });
|
|
51
|
+
var fs_stats_1 = require("./fs-stats");
|
|
52
|
+
Object.defineProperty(exports, "fsStats", { enumerable: true, get: function () { return fs_stats_1.fsStats; } });
|
|
53
|
+
var cpu_full_load_1 = require("../cpu-full-load");
|
|
54
|
+
Object.defineProperty(exports, "fullLoad", { enumerable: true, get: function () { return cpu_full_load_1.fullLoad; } });
|
|
55
|
+
var gpu_1 = require("./gpu");
|
|
56
|
+
Object.defineProperty(exports, "gpu", { enumerable: true, get: function () { return gpu_1.gpu; } });
|
|
57
|
+
var inet_checksite_1 = require("../inet-checksite");
|
|
58
|
+
Object.defineProperty(exports, "inetChecksite", { enumerable: true, get: function () { return inet_checksite_1.inetChecksite; } });
|
|
59
|
+
var inet_latency_1 = require("../linux/inet-latency");
|
|
60
|
+
Object.defineProperty(exports, "inetLatency", { enumerable: true, get: function () { return inet_latency_1.inetLatency; } });
|
|
61
|
+
var keyboard_1 = require("./keyboard");
|
|
62
|
+
Object.defineProperty(exports, "keyboard", { enumerable: true, get: function () { return keyboard_1.keyboard; } });
|
|
63
|
+
var mem_1 = require("./mem");
|
|
64
|
+
Object.defineProperty(exports, "mem", { enumerable: true, get: function () { return mem_1.mem; } });
|
|
65
|
+
var mem_layout_1 = require("./mem-layout");
|
|
66
|
+
Object.defineProperty(exports, "memLayout", { enumerable: true, get: function () { return mem_layout_1.memLayout; } });
|
|
67
|
+
var mouse_1 = require("./mouse");
|
|
68
|
+
Object.defineProperty(exports, "mouse", { enumerable: true, get: function () { return mouse_1.mouse; } });
|
|
69
|
+
var network_connections_1 = require("./network-connections");
|
|
70
|
+
Object.defineProperty(exports, "networkConnections", { enumerable: true, get: function () { return network_connections_1.networkConnections; } });
|
|
71
|
+
var network_gateway_default_1 = require("./network-gateway-default");
|
|
72
|
+
Object.defineProperty(exports, "networkGatewayDefault", { enumerable: true, get: function () { return network_gateway_default_1.networkGatewayDefault; } });
|
|
73
|
+
var network_interface_default_1 = require("./network-interface-default");
|
|
74
|
+
Object.defineProperty(exports, "networkInterfaceDefault", { enumerable: true, get: function () { return network_interface_default_1.networkInterfaceDefault; } });
|
|
75
|
+
var network_interfaces_1 = require("./network-interfaces");
|
|
76
|
+
Object.defineProperty(exports, "networkInterfaces", { enumerable: true, get: function () { return network_interfaces_1.networkInterfaces; } });
|
|
77
|
+
var network_stats_1 = require("./network-stats");
|
|
78
|
+
Object.defineProperty(exports, "networkStats", { enumerable: true, get: function () { return network_stats_1.networkStats; } });
|
|
79
|
+
var npm_1 = require("./npm");
|
|
80
|
+
Object.defineProperty(exports, "npm", { enumerable: true, get: function () { return npm_1.npm; } });
|
|
81
|
+
var npu_1 = require("./npu");
|
|
82
|
+
Object.defineProperty(exports, "npu", { enumerable: true, get: function () { return npu_1.npu; } });
|
|
83
|
+
var os_info_1 = require("./os-info");
|
|
84
|
+
Object.defineProperty(exports, "osInfo", { enumerable: true, get: function () { return os_info_1.osInfo; } });
|
|
85
|
+
var pci_1 = require("./pci");
|
|
86
|
+
Object.defineProperty(exports, "pci", { enumerable: true, get: function () { return pci_1.pci; } });
|
|
87
|
+
var printer_1 = require("./printer");
|
|
88
|
+
Object.defineProperty(exports, "printer", { enumerable: true, get: function () { return printer_1.printer; } });
|
|
89
|
+
var processes_1 = require("../linux/processes");
|
|
90
|
+
Object.defineProperty(exports, "processes", { enumerable: true, get: function () { return processes_1.processes; } });
|
|
91
|
+
var process_load_1 = require("../linux/process-load");
|
|
92
|
+
Object.defineProperty(exports, "processLoad", { enumerable: true, get: function () { return process_load_1.processLoad; } });
|
|
93
|
+
var services_1 = require("../linux/services");
|
|
94
|
+
Object.defineProperty(exports, "services", { enumerable: true, get: function () { return services_1.services; } });
|
|
95
|
+
var shell_1 = require("../shell");
|
|
96
|
+
Object.defineProperty(exports, "shell", { enumerable: true, get: function () { return shell_1.shell; } });
|
|
97
|
+
var software_1 = require("./software");
|
|
98
|
+
Object.defineProperty(exports, "software", { enumerable: true, get: function () { return software_1.software; } });
|
|
99
|
+
var system_1 = require("./system");
|
|
100
|
+
Object.defineProperty(exports, "system", { enumerable: true, get: function () { return system_1.system; } });
|
|
101
|
+
var thunderbolt_1 = require("./thunderbolt");
|
|
102
|
+
Object.defineProperty(exports, "thunderbolt", { enumerable: true, get: function () { return thunderbolt_1.thunderbolt; } });
|
|
103
|
+
var time_1 = require("../time");
|
|
104
|
+
Object.defineProperty(exports, "time", { enumerable: true, get: function () { return time_1.time; } });
|
|
105
|
+
var usb_1 = require("./usb");
|
|
106
|
+
Object.defineProperty(exports, "usb", { enumerable: true, get: function () { return usb_1.usb; } });
|
|
107
|
+
var users_1 = require("./users");
|
|
108
|
+
Object.defineProperty(exports, "users", { enumerable: true, get: function () { return users_1.users; } });
|
|
109
|
+
var uuid_1 = require("./uuid");
|
|
110
|
+
Object.defineProperty(exports, "uuid", { enumerable: true, get: function () { return uuid_1.uuid; } });
|
|
111
|
+
var virtualbox_1 = require("../virtualbox");
|
|
112
|
+
Object.defineProperty(exports, "vboxInfo", { enumerable: true, get: function () { return virtualbox_1.vboxInfo; } });
|
|
113
|
+
var version_1 = require("../version");
|
|
114
|
+
Object.defineProperty(exports, "version", { enumerable: true, get: function () { return version_1.version; } });
|
|
115
|
+
var versions_1 = require("../versions");
|
|
116
|
+
Object.defineProperty(exports, "versions", { enumerable: true, get: function () { return versions_1.versions; } });
|
|
117
|
+
var wifi_connections_1 = require("./wifi-connections");
|
|
118
|
+
Object.defineProperty(exports, "wifiConnections", { enumerable: true, get: function () { return wifi_connections_1.wifiConnections; } });
|
|
119
|
+
var wifi_interfaces_1 = require("./wifi-interfaces");
|
|
120
|
+
Object.defineProperty(exports, "wifiInterfaces", { enumerable: true, get: function () { return wifi_interfaces_1.wifiInterfaces; } });
|
|
121
|
+
var wifi_networks_1 = require("./wifi-networks");
|
|
122
|
+
Object.defineProperty(exports, "wifiNetworks", { enumerable: true, get: function () { return wifi_networks_1.wifiNetworks; } });
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.keyboard = void 0;
|
|
4
|
+
const darwin_1 = require("../common/darwin");
|
|
5
|
+
const common_1 = require("../common");
|
|
6
|
+
const exec_1 = require("../common/exec");
|
|
7
|
+
const mappings_1 = require("../common/mappings");
|
|
8
|
+
const bluetooth_1 = require("./bluetooth");
|
|
9
|
+
const parseKeyboard = (data) => {
|
|
10
|
+
const result = [];
|
|
11
|
+
data.forEach((element) => {
|
|
12
|
+
result.push({
|
|
13
|
+
name: element._name || '',
|
|
14
|
+
vendor: element.f_manufacturer || '',
|
|
15
|
+
model: element.a_product_id || '',
|
|
16
|
+
serial: element.d_serial_num || '',
|
|
17
|
+
connection: 'internal'
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
const parseUsb = (data) => {
|
|
23
|
+
const result = [];
|
|
24
|
+
data.forEach((part) => {
|
|
25
|
+
if (part._items) {
|
|
26
|
+
part._items.forEach((usb) => {
|
|
27
|
+
if ((0, mappings_1.usbDarwinType)(usb._name).toLowerCase().includes('keyboard')) {
|
|
28
|
+
result.push({
|
|
29
|
+
name: usb._name || '',
|
|
30
|
+
vendor: usb.manufacturer || '',
|
|
31
|
+
model: '' + usb.product_id,
|
|
32
|
+
serial: usb.serial || '',
|
|
33
|
+
connection: 'usb'
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
const filterBluetooth = (data) => {
|
|
42
|
+
const result = [];
|
|
43
|
+
data.forEach((part) => {
|
|
44
|
+
if (part.type.toLowerCase().includes('keyboard') && part.connected) {
|
|
45
|
+
result.push({
|
|
46
|
+
name: part.name || '',
|
|
47
|
+
vendor: part.manufacturer || '',
|
|
48
|
+
model: '',
|
|
49
|
+
serial: '',
|
|
50
|
+
connection: 'bluetooth'
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return result;
|
|
55
|
+
};
|
|
56
|
+
const keyboard = async () => {
|
|
57
|
+
await (0, common_1.nextTick)();
|
|
58
|
+
try {
|
|
59
|
+
const { stdout } = await (0, exec_1.exec)('system_profiler SPSPIDataType SPUSBDataType SPBluetoothDataType -xml');
|
|
60
|
+
const data = (0, darwin_1.plistParser)(stdout, false);
|
|
61
|
+
const spiData = data.length >= 2 && data[0]._items ? data[0]._items : [];
|
|
62
|
+
const usbData = data.length >= 2 && data[1]._items ? data[1]._items : [];
|
|
63
|
+
const bluetoothData = data.length >= 3 && data[2]._items ? data[2]._items : [];
|
|
64
|
+
let result = parseKeyboard(spiData);
|
|
65
|
+
result = result.concat(parseUsb(usbData));
|
|
66
|
+
result = result.concat(filterBluetooth((0, bluetooth_1.parseBluetooth)(bluetoothData)));
|
|
67
|
+
return result;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
return [];
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
exports.keyboard = keyboard;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.memLayout = void 0;
|
|
4
|
+
const node_os_1 = require("node:os");
|
|
5
|
+
const common_1 = require("../common");
|
|
6
|
+
const darwin_1 = require("./../common/darwin");
|
|
7
|
+
const exec_1 = require("../common/exec");
|
|
8
|
+
const mappings_1 = require("../common/mappings");
|
|
9
|
+
const memLayout = async () => {
|
|
10
|
+
await (0, common_1.nextTick)();
|
|
11
|
+
const result = [];
|
|
12
|
+
try {
|
|
13
|
+
const { stdout } = await (0, exec_1.exec)('system_profiler SPMemoryDataType -xml');
|
|
14
|
+
const memData = (0, darwin_1.plistParser)(stdout);
|
|
15
|
+
if (memData && memData[0] && memData[0]._items) {
|
|
16
|
+
const eccStatus = memData[0].global_ecc_state ? memData[0].global_ecc_state.indexOf('enabled') >= 0 : false;
|
|
17
|
+
memData[0]._items.forEach((item) => {
|
|
18
|
+
const sizeString = (item.dimm_size || '').toLowerCase();
|
|
19
|
+
const sizeUnit = sizeString.indexOf('mb') >= 0 ? 1024 * 1024 : sizeString.indexOf('tb') >= 0 ? 1024 * 1024 * 1024 * 1024 : 1024 * 1024 * 1024;
|
|
20
|
+
const size = (0, common_1.toInt)(item.dimm_size) * sizeUnit;
|
|
21
|
+
const name = item._name.trim();
|
|
22
|
+
result.push({
|
|
23
|
+
size: size,
|
|
24
|
+
bank: name.split('/')[0],
|
|
25
|
+
channel: name.split('/')[1] ? name.split('/')[1] : '',
|
|
26
|
+
type: item.dimm_type || 'empty',
|
|
27
|
+
ecc: eccStatus,
|
|
28
|
+
clockSpeed: (0, common_1.toInt)(item.dimm_speed),
|
|
29
|
+
formFactor: '',
|
|
30
|
+
manufacturer: (0, mappings_1.getMemManufacturer)(item.dimm_manufacturer),
|
|
31
|
+
partNum: item.dimm_part_number || '',
|
|
32
|
+
serialNum: item.dimm_serial_number || '',
|
|
33
|
+
voltageConfigured: null,
|
|
34
|
+
voltageMin: null,
|
|
35
|
+
voltageMax: null
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (!result.length) {
|
|
40
|
+
result.push({
|
|
41
|
+
size: (0, node_os_1.totalmem)(),
|
|
42
|
+
bank: null,
|
|
43
|
+
channel: null,
|
|
44
|
+
type: memData[0].dimm_type || 'SOC',
|
|
45
|
+
ecc: false,
|
|
46
|
+
clockSpeed: null,
|
|
47
|
+
formFactor: 'SOC',
|
|
48
|
+
manufacturer: memData[0].dimm_manufacturer || 'Apple',
|
|
49
|
+
partNum: '',
|
|
50
|
+
serialNum: '',
|
|
51
|
+
voltageConfigured: null,
|
|
52
|
+
voltageMin: null,
|
|
53
|
+
voltageMax: null
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
catch { }
|
|
58
|
+
return result;
|
|
59
|
+
};
|
|
60
|
+
exports.memLayout = memLayout;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mem = void 0;
|
|
4
|
+
const common_1 = require("../common");
|
|
5
|
+
const defaults_1 = require("../common/defaults");
|
|
6
|
+
const exec_1 = require("../common/exec");
|
|
7
|
+
const exec_2 = require("./../common/exec");
|
|
8
|
+
const mem = async () => {
|
|
9
|
+
await (0, common_1.nextTick)();
|
|
10
|
+
const result = (0, common_1.cloneObj)(defaults_1.initMemData);
|
|
11
|
+
try {
|
|
12
|
+
let pageSize = 4096;
|
|
13
|
+
try {
|
|
14
|
+
const { stdout } = await (0, exec_1.exec)('sysctl -n vm.pagesize');
|
|
15
|
+
const sysPpageSize = (0, common_1.toInt)(stdout);
|
|
16
|
+
pageSize = sysPpageSize || pageSize;
|
|
17
|
+
}
|
|
18
|
+
catch { }
|
|
19
|
+
let { stdout } = await (0, exec_1.exec)('vm_stat 2>/dev/null | egrep "Pages active|Pages inactive|Pages speculative|Pages wired down|Pages occupied by compressor|Pages purgeable|File-backed pages|Anonymous pages"');
|
|
20
|
+
let lines = stdout.split('\n');
|
|
21
|
+
const wired = (parseInt((0, common_1.getValue)(lines, 'Pages wired down'), 10) || 0) * pageSize;
|
|
22
|
+
const compressed = (parseInt((0, common_1.getValue)(lines, 'Pages occupied by compressor'), 10) || 0) * pageSize;
|
|
23
|
+
const purgeable = (parseInt((0, common_1.getValue)(lines, 'Pages purgeable'), 10) || 0) * pageSize;
|
|
24
|
+
const anonymous = (parseInt((0, common_1.getValue)(lines, 'Anonymous pages'), 10) || 0) * pageSize;
|
|
25
|
+
result.active = anonymous - purgeable + wired + compressed;
|
|
26
|
+
result.reclaimable = (parseInt((0, common_1.getValue)(lines, 'Pages inactive'), 10) || 0) * pageSize;
|
|
27
|
+
result.buffcache = result.used - result.active;
|
|
28
|
+
result.available = result.free + result.buffcache;
|
|
29
|
+
({ stdout } = await (0, exec_2.execSave)('sysctl -in vm.swapusage 2>/dev/null'));
|
|
30
|
+
lines = stdout.split('\n');
|
|
31
|
+
if (lines.length > 0) {
|
|
32
|
+
const firstline = lines[0].replace(/,/g, '.').replace(/M/g, '');
|
|
33
|
+
const lineArray = firstline.trim().split(' ');
|
|
34
|
+
lineArray.forEach((line) => {
|
|
35
|
+
if (line.toLowerCase().indexOf('total') !== -1) {
|
|
36
|
+
result.swaptotal = parseFloat(line.split('=')[1].trim()) * 1024 * 1024;
|
|
37
|
+
}
|
|
38
|
+
if (line.toLowerCase().indexOf('used') !== -1) {
|
|
39
|
+
result.swapused = parseFloat(line.split('=')[1].trim()) * 1024 * 1024;
|
|
40
|
+
}
|
|
41
|
+
if (line.toLowerCase().indexOf('free') !== -1) {
|
|
42
|
+
result.swapfree = parseFloat(line.split('=')[1].trim()) * 1024 * 1024;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
catch { }
|
|
48
|
+
return result;
|
|
49
|
+
};
|
|
50
|
+
exports.mem = mem;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mouse = void 0;
|
|
4
|
+
const darwin_1 = require("../common/darwin");
|
|
5
|
+
const common_1 = require("../common");
|
|
6
|
+
const exec_1 = require("../common/exec");
|
|
7
|
+
const mappings_1 = require("../common/mappings");
|
|
8
|
+
const bluetooth_1 = require("./bluetooth");
|
|
9
|
+
const parseKeyboard = (data) => {
|
|
10
|
+
const result = [];
|
|
11
|
+
data.forEach((element) => {
|
|
12
|
+
const usbType = (0, mappings_1.usbDarwinType)(element._name);
|
|
13
|
+
result.push({
|
|
14
|
+
name: element._name || '',
|
|
15
|
+
type: usbType,
|
|
16
|
+
vendor: element.f_manufacturer || '',
|
|
17
|
+
model: element.a_product_id || '',
|
|
18
|
+
serial: element.d_serial_num || '',
|
|
19
|
+
connection: 'internal'
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
const parseUsb = (data) => {
|
|
25
|
+
const result = [];
|
|
26
|
+
data.forEach((part) => {
|
|
27
|
+
if (part._items) {
|
|
28
|
+
part._items.forEach((usb) => {
|
|
29
|
+
const usbType = (0, mappings_1.usbDarwinType)(usb._name);
|
|
30
|
+
if (usbType.toLowerCase().includes('mouse') || usbType.toLowerCase().includes('trackpad')) {
|
|
31
|
+
result.push({
|
|
32
|
+
name: usb._name || '',
|
|
33
|
+
type: usbType,
|
|
34
|
+
vendor: usb.manufacturer || '',
|
|
35
|
+
model: '' + usb.product_id,
|
|
36
|
+
serial: usb.serial || '',
|
|
37
|
+
connection: 'usb'
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
const filterBluetooth = (data) => {
|
|
46
|
+
const result = [];
|
|
47
|
+
data.forEach((part) => {
|
|
48
|
+
if ((part.type.toLowerCase().includes('mouse') || part.type.toLowerCase().includes('trackpad')) && part.connected) {
|
|
49
|
+
result.push({
|
|
50
|
+
name: part.name || '',
|
|
51
|
+
type: part.type || '',
|
|
52
|
+
vendor: part.manufacturer || '',
|
|
53
|
+
model: '',
|
|
54
|
+
serial: '',
|
|
55
|
+
connection: 'bluetooth'
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
return result;
|
|
60
|
+
};
|
|
61
|
+
const mouse = async () => {
|
|
62
|
+
await (0, common_1.nextTick)();
|
|
63
|
+
try {
|
|
64
|
+
const { stdout } = await (0, exec_1.exec)('system_profiler SPSPIDataType SPUSBDataType SPBluetoothDataType -xml');
|
|
65
|
+
const data = (0, darwin_1.plistParser)(stdout, false);
|
|
66
|
+
const spiData = data.length >= 2 && data[0]._items ? data[0]._items : [];
|
|
67
|
+
const usbData = data.length >= 2 && data[1]._items ? data[1]._items : [];
|
|
68
|
+
const bluetoothData = data.length >= 3 && data[2]._items ? data[2]._items : [];
|
|
69
|
+
let result = parseKeyboard(spiData);
|
|
70
|
+
result = result.concat(parseUsb(usbData));
|
|
71
|
+
result = result.concat(filterBluetooth((0, bluetooth_1.parseBluetooth)(bluetoothData)));
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
exports.mouse = mouse;
|