Glossary: Desktop Apps with Electron and Tauri
process.platform
Also written: darwin, win32, process.platform values
A Node.js value naming the operating system: `"darwin"` on macOS, `"win32"` on Windows (even 64-bit) and `"linux"` on Linux. Electron apps use it for per-system behavior.