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

Function getArch

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

Source from the content-addressed store, hash-verified

47}
48
49function getArch() {
50 switch (process.arch) {
51 case 'arm64': return 'arm64';
52 case 'x64': return 'amd64';
53 default: throw new Error(`Unsupported architecture: ${process.arch}`);
54 }
55}
56
57// Security: only follow HTTPS URLs (defense-in-depth). Parse the URL instead
58// 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