Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
1
import
* as v from
'valibot'
2
import
{ PackageFileQuerySchema } from
'#shared/schemas/package'
3
import
type
{ ReadmeResponse } from
'#shared/types/readme'
4
import
{
Callers
nothing calls this directly
Calls
12
parsePackageParams
Function · 0.85
fetchFileContent
Function · 0.85
getLanguageFromPath
Function · 0.85
getPackageFileTree
Function · 0.85
resolveDependencyVersions
Function · 0.85
flattenFileTree
Function · 0.85
createImportResolver
Function · 0.85
highlightCode
Function · 0.85
parseRepositoryInfo
Function · 0.85
renderReadmeHtml
Function · 0.85
handleApiError
Function · 0.85
fetchPackageJson
Function · 0.70
Tested by
no test coverage detected