MCPcopy
hub / github.com/evanw/esbuild / downloadedBinPath

Function downloadedBinPath

lib/npm/node-platform.ts:111–114  ·  view source on GitHub ↗
(pkg: string, subpath: string)

Source from the content-addressed store, hash-verified

109}
110
111export function downloadedBinPath(pkg: string, subpath: string): string {
112 const esbuildLibDir = path.dirname(require.resolve('esbuild'))
113 return path.join(esbuildLibDir, `downloaded-${pkg.replace('/', '-')}-${path.basename(subpath)}`)
114}
115
116export function generateBinPath(): { binPath: string, isWASM: boolean } {
117 // This feature was added to give external code a way to modify the binary

Callers 2

checkAndPreparePackageFunction · 0.90
generateBinPathFunction · 0.85

Calls 2

resolveMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…