MCPcopy
hub / github.com/esm-dev/esm.sh / String

Method String

server/path.go:51–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51func (p EsmPath) String() string {
52 if p.SubPath != "" {
53 return p.PackageId() + "/" + p.SubPath
54 }
55 return p.PackageId()
56}
57
58func parseEsmPath(npmrc *NpmRC, pathname string) (esm EsmPath, extraQuery string, exactVersion bool, target string, xArgs *BuildArgs, err error) {
59 // see https://pkg.pr.new

Callers 15

resolveExternalModuleMethod · 0.95
transformDTSFunction · 0.95
addImportsFunction · 0.45
esmRouterFunction · 0.45
TestDtsWalkerFunction · 0.45
listGhRepoRefsContextFunction · 0.45
resolveGhPackageVersionFunction · 0.45
TestGhInstallFunction · 0.45
legacyESMFunction · 0.45
buildUnenvNodeRuntimeFunction · 0.45
cjsModuleLexerFunction · 0.45
buildPathMethod · 0.45

Calls 1

PackageIdMethod · 0.95

Tested by 2

TestDtsWalkerFunction · 0.36
TestGhInstallFunction · 0.36