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

Method parsePath

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

Parse URL path into owner/repo, returns null if invalid

(parts: string[])

Source from the content-addressed store, hash-verified

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 */
60 getRawBaseUrl(ref: RepoRef, branch?: string): string
61 /** Get blob/rendered URL base for markdown files */

Callers 1

parseRepoUrlFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected