MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / findZipEntryKey

Function findZipEntryKey

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

Source from the content-addressed store, hash-verified

202// --- Extract ---
203
204function findZipEntryKey(files, want) {
205 return Object.keys(files).find(k => {
206 const norm = k.replace(/\\/g, '/')
207 return norm === want || norm.endsWith(`/${want}`)
208 })
209}
210
211async function extractZip(buffer, binaryPath, extractedBinary) {
212 const binaryDir = path.dirname(binaryPath)

Callers 1

extractZipFunction · 0.85

Calls 1

keysMethod · 0.65

Tested by

no test coverage detected