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

Function getPlatform

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

Source from the content-addressed store, hash-verified

38const SLEEP_WORD = new Int32Array(new SharedArrayBuffer(4));
39
40function getPlatform() {
41 switch (process.platform) {
42 case 'linux': return 'linux';
43 case 'darwin': return 'darwin';
44 case 'win32': return 'windows';
45 default: throw new Error(`Unsupported platform: ${process.platform}`);
46 }
47}
48
49function getArch() {
50 switch (process.arch) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected