Skip to main content

Module OSProperties

Module OSProperties 

Source
Expand description

Wire method: nativeHost:getOSProperties (cross-platform). Returns Electron-shaped { type, release, arch, platform, cpus } tuple. Cached for the process lifetime - OS type, version, arch, and CPU topology are stable; spawning sw_vers/uname on every call wastes ~10 ms each.

Staticsยง

OS_PROPERTIES_CACHE ๐Ÿ”’

Functionsยง

Fn
compute_os_properties ๐Ÿ”’