MCPcopy Index your code
hub / github.com/observablehq/framework / resolve

Function resolve

test/javascript/annotate.ts:59–61  ·  view source on GitHub ↗
(path: string, specifier: string)

Source from the content-addressed store, hash-verified

57});
58
59function resolve(path: string, specifier: string): string {
60 return specifier.startsWith("/npm/") ? relativePath(path, fromJsDelivrPath(specifier)) : specifier;
61}

Callers 3

runTestsFunction · 0.70
runTestsFunction · 0.70
annotate.tsFile · 0.70

Calls 2

relativePathFunction · 0.85
fromJsDelivrPathFunction · 0.85

Tested by

no test coverage detected