heynote/electron/detect-platform.ts
2023-01-19 00:20:50 +01:00

7 lines
179 B
TypeScript

const os = require('os');
export const isMac = os.platform() === "darwin";
export const isWindows = os.platform() === "win32";
export const isLinux = os.platform() === "linux";