MCPcopy Create free account
hub / github.com/claude-code-internals/claude-code-runnable / detectMusl

Function detectMusl

scripts/postinstall.cjs:50–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50function detectMusl() {
51 const muslArch = process.arch === 'x64' ? 'x86_64' : 'aarch64'
52 try { statSync(`/lib/libc.musl-${muslArch}.so.1`); return true } catch { return false }
53}
54
55function getBinaryPath() {
56 const subdir = `${process.arch}-${process.platform}`

Callers 1

getPlatformMappingFunction · 0.85

Calls 1

statSyncFunction · 0.85

Tested by

no test coverage detected