MCPcopy
hub / github.com/npmx-dev/npmx.dev / matchHost

Method matchHost

shared/utils/git-providers.ts:56–56  ·  view source on GitHub ↗

Check if hostname matches this provider

(host: string)

Source from the content-addressed store, hash-verified

54 id: ProviderId
55 /** Check if hostname matches this provider */
56 matchHost(host: string): boolean
57 /** Parse URL path into owner/repo, returns null if invalid */
58 parsePath(parts: string[]): { owner: string; repo: string } | null
59 /** Get raw file URL base for resolving relative paths */

Callers 1

parseRepoUrlFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected