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

Function findZipEntryKey

scripts/postinstall.cjs:109–114  ·  view source on GitHub ↗
(files, want)

Source from the content-addressed store, hash-verified

107}
108
109function findZipEntryKey(files, want) {
110 return Object.keys(files).find((k) => {
111 const norm = k.replace(/\\/g, '/')
112 return norm === want || norm.endsWith(`/${want}`)
113 })
114}
115
116async function extractZip(buffer, binaryPath, extractedBinary) {
117 const dir = path.dirname(binaryPath)

Callers 1

extractZipFunction · 0.85

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected