UNPKG

@neabyte/project-root

Version:

A TypeScript library for detecting project root directories by analyzing file patterns and indicators across multiple programming languages and build systems.

5 lines (4 loc) 348 B
import type { BestMatch, Indicator, ProjectDiscovery } from './interfaces/index.js'; export declare function findProjectRoot(startPath: string): string | null; export declare function findProjectDeep(startPath: string, maxDepth?: number, includeSubdirectories?: boolean): ProjectDiscovery[]; export type { BestMatch, Indicator, ProjectDiscovery };