MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / getRemoteId

Function getRemoteId

shared/remote-utils.ts:25–28  ·  view source on GitHub ↗
(remoteUrl: string, language: string)

Source from the content-addressed store, hash-verified

23// POSSIBILITY OF SUCH DAMAGE.
24
25export function getRemoteId(remoteUrl: string, language: string): string {
26 const url: URL = new URL(remoteUrl);
27 return url.host.replace(/\./g, '_') + url.pathname.replace(/\//g, '_') + '_' + language;
28}

Callers 4

getRemoteLibsMethod · 0.85
getRemoteLibrariesMethod · 0.85
options-handler.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected