MCPcopy Index your code
hub / github.com/nodejs/node / getFrontendUrl

Method getFrontendUrl

deps/npm/lib/trust-cmd.js:168–173  ·  view source on GitHub ↗
({ pkgName })

Source from the content-addressed store, hash-verified

166 }
167
168 getFrontendUrl ({ pkgName }) {
169 if (this.registryIsDefault) {
170 return new URL(`/package/${pkgName}`, NPM_FRONTEND).toString()
171 }
172 return null
173 }
174
175 getRepositoryFromPackageJson (pkg) {
176 const info = gitinfo.fromUrl(pkg.repository?.url || pkg?.repository)

Callers 2

flagsToOptionsMethod · 0.95
flagsToOptionsMethod · 0.80

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected