find-up
Find a file or directory by walking up parent directories
Find a file or directory by walking up parent directories
Find the root directory of a Node.js project or npm package
Read the closest package.json file
Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
Find the closest package.json file
Find the first directory with a package.json, recursing up, starting with the given directory. Similar to look-up but does not support globs and only searches for package.json. Async and sync.
Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.
Find a file by walking up parent directories
Walk up the tree to resolve `tsconfig.json` configuration objects.
Find the root directory of a `git` repository
Faster drop-in replacement for find-up and findup-sync.
Return the filename or parent directory path of a file or directory by walking up parent directories.
Find the root directory of an npm package
Resolve paths to globally installed npm modules using glob patterns. Useful for getting paths to yeoman or Generate generators, etc.
Read the closest package.json file
resolve package root and package.json paths , work on node 17 too
Find a file by walking up parent directories (barebones implementation, no dependencies)
which the heck directions
Find a file by walking up parent directories
Find top most root directory of a Node.js project or npm package.