2022-09-27 14:47:12 +02:00
|
|
|
export const IS_WINDOWS = process.platform === 'win32';
|
2023-05-25 13:11:13 +02:00
|
|
|
export const PLATFORM = ((): 'windows' | 'linux' | 'mac' => {
|
|
|
|
|
if (process.platform === 'win32') return 'windows';
|
|
|
|
|
if (process.platform === 'linux') return 'linux';
|
2023-05-12 14:07:46 +02:00
|
|
|
return 'mac';
|
2023-05-25 13:11:13 +02:00
|
|
|
})();
|