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

Function convertToFilePath

src/shared/gsc.ts:23–25  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

21 * @returns The converted file path
22 */
23export function convertToFilePath(path: string) {
24 return path.replace("http://", "http_").replace("https://", "https_").replaceAll("/", "_");
25}
26
27/**
28 * Converts an HTTP URL to a sc-domain URL format.

Callers 1

indexFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected