UNPKG

ancesdir

Version:

Find a specific ancestor/root directory given a starting location and a search parameter

11 lines (10 loc) 424 B
import { ClosesdirFn } from "./types"; /** * Find the closest directory containing a specific marker file. * * This function is similar to ancesdir, but it includes the starting * directory in the search. It returns the closest directory that contains * the specified marker file, starting from the given path or the parent * directory of ancesdir's package directory. */ export declare const closesdir: ClosesdirFn;