MCPcopy
hub / github.com/colbymchenry/codegraph / looksLikeProjectRoot

Function looksLikeProjectRoot

src/directory.ts:196–198  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

194];
195
196function looksLikeProjectRoot(dir: string): boolean {
197 return WORKSPACE_ROOT_MANIFESTS.some((m) => fs.existsSync(path.join(dir, m)));
198}
199
200function escapeRegExp(s: string): string {
201 return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');

Callers 1

planFrontloadFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected