MCPcopy Index your code
hub / github.com/npmx-dev/npmx.dev / getRepositoryStars

Function getRepositoryStars

shared/utils/repository-meta.ts:521–528  ·  view source on GitHub ↗
(
  cachedFetch: CachedFetchFunction,
  ref: RepoRef,
  options: Parameters<typeof $fetch>[1] = {},
)

Source from the content-addressed store, hash-verified

519}
520
521export async function getRepositoryStars(
522 cachedFetch: CachedFetchFunction,
523 ref: RepoRef,
524 options: Parameters<typeof $fetch>[1] = {},
525): Promise<number | null> {
526 const meta = await getRepoMeta(cachedFetch, ref, options)
527 return meta?.stars ?? null
528}

Callers 1

Calls 1

getRepoMetaFunction · 0.85

Tested by

no test coverage detected