MCPcopy
hub / github.com/goenning/google-indexing-script / convertToSCDomain

Function convertToSCDomain

src/shared/gsc.ts:32–34  ·  view source on GitHub ↗
(httpUrl: string)

Source from the content-addressed store, hash-verified

30 * @returns The sc-domain formatted URL.
31 */
32export function convertToSCDomain(httpUrl: string) {
33 return `sc-domain:${httpUrl.replace("http://", "").replace("https://", "").replace("/", "")}`;
34}
35
36/**
37 * Converts a domain to an HTTP URL.

Callers 1

checkSiteUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected