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

Function getPlatform

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

Source from the content-addressed store, hash-verified

48const SLEEP_WORD = new Int32Array(new SharedArrayBuffer(4));
49
50function getPlatform() {
51 switch (process.platform) {
52 case 'linux': return 'linux';
53 case 'darwin': return 'darwin';
54 case 'win32': return 'windows';
55 default: throw new Error(`Unsupported platform: ${process.platform}`);
56 }
57}
58
59function getArch() {
60 switch (process.arch) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected