MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / getArch

Function getArch

pkg/npm/install.js:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59function getArch() {
60 switch (process.arch) {
61 case 'arm64': return 'arm64';
62 case 'x64': return 'amd64';
63 default: throw new Error(`Unsupported architecture: ${process.arch}`);
64 }
65}
66
67// Security: only follow HTTPS URLs (defense-in-depth). Parse the URL instead
68// of relying on a string prefix so every redirect is checked unambiguously.

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected