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.

8 lines (7 loc) 468 B
import type { Indicator } from '../interfaces/index.js'; export declare const allIndicators: Array<Indicator>; export declare function calculateScore(matches: string[]): number; export declare function checkProjectRoot(currentDir: string): number; export declare function isInsideBlacklist(currentPath: string): boolean; export declare function isPathRelative(path: string): boolean; export declare function validateAndNormalizePath(startPath: string): string | null;