()
| 73 | type Architecture = "x64" | "arm64" | "unknown"; |
| 74 | |
| 75 | export function getPlatform(): Platform { |
| 76 | const platform = os.platform(); |
| 77 | if (platform === "darwin") { |
| 78 | return "mac"; |
| 79 | } else if (platform === "linux") { |
| 80 | return "linux"; |
| 81 | } else if (platform === "win32") { |
| 82 | return "windows"; |
| 83 | } else { |
| 84 | return "unknown"; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | export function getArchitecture(): Architecture { |
| 89 | const arch = os.arch(); |
no outgoing calls
no test coverage detected