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

Function tryCurlDownload

scripts/postinstall.cjs:142–149  ·  view source on GitHub ↗
(url, dest)

Source from the content-addressed store, hash-verified

140}
141
142function tryCurlDownload(url, dest) {
143 const curl = process.platform === 'win32' ? 'curl.exe' : 'curl'
144 const result = spawnSync(curl, ['-fsSL', '-L', '--fail', '-o', dest, url], {
145 stdio: 'pipe',
146 windowsHide: true,
147 })
148 return result.status === 0 && existsSync(dest) && statSync(dest).size > 0
149}
150
151async function fetchRelease(url) {
152 if (proxyEnvSet()) {

Callers 1

Calls 2

existsSyncFunction · 0.85
statSyncFunction · 0.85

Tested by

no test coverage detected