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

Function getPlatform

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

Source from the content-addressed store, hash-verified

15const BIN_DIR = path.join(__dirname, 'bin');
16
17function getPlatform() {
18 switch (process.platform) {
19 case 'linux': return 'linux';
20 case 'darwin': return 'darwin';
21 case 'win32': return 'windows';
22 default: throw new Error(`Unsupported platform: ${process.platform}`);
23 }
24}
25
26function getArch() {
27 switch (process.arch) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected