MCPcopy Create free account
hub / github.com/tinyplex/tinybase / absolutizeImportUrl

Function absolutizeImportUrl

site/demo.ts:51–52  ·  view source on GitHub ↗
(url: string, baseUrl: string)

Source from the content-addressed store, hash-verified

49 );
50
51const absolutizeImportUrl = (url: string, baseUrl: string): string =>
52 /^https?:\/\//.test(url) ? url : new URL(url, baseUrl).href;
53
54const getMappedImportUrl = (
55 specifier: string,

Callers 1

getMappedImportUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…