ancesdir
Version:
Find a specific ancestor/root directory given a starting location and a search parameter
11 lines (10 loc) • 472 B
TypeScript
import { Options } from "./types";
/**
* Find the marker file in the directory structure starting from a given path.
*
* @param {Options} options - The options for the search.
* @param {string} options.from - The absolute path to start the search from.
* @throws Error if the starting path is not absolute.
* @throws Error if the marker cannot be found.
*/
export declare const findMarker: ({ from: startingPoint, marker, includeFrom, force, }: Options) => string;