MCPcopy
hub / github.com/npmx-dev/npmx.dev / [...pkg].get.ts

File [...pkg].get.ts

server/api/registry/file/[...pkg].get.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import * as v from 'valibot'
2import { PackageFileQuerySchema } from '#shared/schemas/package'
3import type { ReadmeResponse } from '#shared/types/readme'
4import {

Callers

nothing calls this directly

Calls 12

parsePackageParamsFunction · 0.85
fetchFileContentFunction · 0.85
getLanguageFromPathFunction · 0.85
getPackageFileTreeFunction · 0.85
flattenFileTreeFunction · 0.85
createImportResolverFunction · 0.85
highlightCodeFunction · 0.85
parseRepositoryInfoFunction · 0.85
renderReadmeHtmlFunction · 0.85
handleApiErrorFunction · 0.85
fetchPackageJsonFunction · 0.70

Tested by

no test coverage detected