MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / normalizeDockerPlatform

Function normalizeDockerPlatform

common/src/docker_utils.ts:29–33  ·  view source on GitHub ↗
(platform: { os?: string; architecture?: string })

Source from the content-addressed store, hash-verified

27 * @returns Normalized platform string in format "os/arch" (e.g., "linux/amd64")
28 */
29export function normalizeDockerPlatform(platform: { os?: string; architecture?: string }): string {
30 const os = normalizeDockerOS(platform.os);
31 const arch = normalizeDockerArchitecture(platform.architecture);
32 return `${os}/${arch}`;
33}

Callers 2

Calls 2

normalizeDockerOSFunction · 0.85

Tested by

no test coverage detected