Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/npmx-dev/npmx.dev
/ getDependencyCount
Function
getDependencyCount
app/utils/npm/dependency-count.ts:1–4 ·
view source on GitHub ↗
(version: PackumentVersion | null)
Source
from the content-addressed store, hash-verified
1
export
function
getDependencyCount(version: PackumentVersion | null): number {
2
if
(!version?.dependencies)
return
0
3
return
Object.keys(version.dependencies).length
4
}
Callers
1
fetchPackages
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected