MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / normalizePlatform2

Function normalizePlatform2

out/cli.cjs:81022–81041  ·  view source on GitHub ↗
(platform)

Source from the content-addressed store, hash-verified

81020 if (arch2 === "arm")
81021 return "arm";
81022 if (arch2 === "aarch64" || arch2 === "arm64")
81023 return "arm64";
81024 if (arch2)
81025 return `other:${arch2}`;
81026 return "unknown";
81027};
81028var normalizePlatform2 = (platform) => {
81029 platform = platform.toLowerCase();
81030 if (platform.includes("ios"))
81031 return "iOS";
81032 if (platform === "android")
81033 return "Android";
81034 if (platform === "darwin")
81035 return "MacOS";
81036 if (platform === "win32")
81037 return "Windows";
81038 if (platform === "freebsd")
81039 return "FreeBSD";
81040 if (platform === "openbsd")
81041 return "OpenBSD";
81042 if (platform === "linux")
81043 return "Linux";
81044 if (platform)

Callers 1

getPlatformProperties2Function · 0.85

Calls 2

toLowerCaseMethod · 0.80
includesMethod · 0.80

Tested by

no test coverage detected