UNPKG

sussy-util

Version:
11 lines (10 loc) 394 B
/** * "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;