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