MCPcopy Index your code
hub / github.com/Moddable-OpenSource/moddable / mergeURL

Method mergeURL

tools/mcpack.js:646–649  ·  view source on GitHub ↗
(href, base)

Source from the content-addressed store, hash-verified

644 }) ? true : false;
645 }
646 mergeURL(href, base) {
647 const url = new URL(href, base);
648 return url.toString();
649 }
650 pathToURL(path) {
651 if (this.windows)
652 path = "/" + path.replaceAll('\\', '/');

Callers 4

runMethod · 0.80
ESM_RESOLVEMethod · 0.80
PACKAGE_RESOLVEMethod · 0.80

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected