MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / hasDep

Function hasDep

src/tools/frontend/detect-stack.ts:165–168  ·  view source on GitHub ↗
(pkg: any, name: string)

Source from the content-addressed store, hash-verified

163];
164
165function hasDep(pkg: any, name: string): string | null {
166 const all = { ...(pkg.dependencies || {}), ...(pkg.devDependencies || {}), ...(pkg.peerDependencies || {}) };
167 return all[name] || null;
168}
169
170function detect(pkg: any, items: Array<{ name: string; pkg: string | null; evidence?: string }>) {
171 const found: { name: string; version?: string; note?: string }[] = [];

Callers 2

detectFunction · 0.85
executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected