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

Function findFile

src/tools/frontend/detect-stack.ts:47–53  ·  view source on GitHub ↗
(root: string, names: string[])

Source from the content-addressed store, hash-verified

45}
46
47async function findFile(root: string, names: string[]): Promise<string | null> {
48 for (const name of names) {
49 const p = path.join(root, name);
50 if (await exists(p)) return p;
51 }
52 return null;
53}
54
55const FRAMEWORKS: Array<{ name: string; pkg: string; detect?: (root: string) => Promise<string | null> }> = [
56 { name: 'Next.js', pkg: 'next', detect: async (root) => {

Callers 1

executeMethod · 0.85

Calls 1

existsFunction · 0.70

Tested by

no test coverage detected