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

Method getRawBaseUrl

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

Get raw file URL base for resolving relative paths

(ref: RepoRef, branch?: string)

Source from the content-addressed store, hash-verified

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 */
62 getBlobBaseUrl(ref: RepoRef, branch?: string): string
63 /** Convert file URLs to blob URLs (for images) */

Callers 1

parseRepositoryInfoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected