sussy-util
Version:
Util package made by me
11 lines (10 loc) • 394 B
TypeScript
/**
* "If the package.json file exists in the given directory, return the directory, otherwise, return the
* parent directory."
*
* The function is recursive, meaning that it calls itself. It does this until it finds the
* package.json file
* @param {string} dirPath - The path to the directory you want to check.
*/
declare const temp: (dirPath: string) => string;
export default temp;