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 closest package.json file
Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.
Read the closet Babel configuration file
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
Find a file or directory by walking up parent directories recursively. Zero dependency.
Find the root directory of an npm package
Read the closest package.json file
Find all instances of a file or folder in parent directories
resolve package root and package.json paths , work on node 17 too
Find a file by walking up parent directories (barebones implementation, no dependencies)
yet another lookup
Find top most root directory of a Node.js project or npm package.
Find a file by walking up parent directories
Read the closest package.json file
Read the closest package.json files and find yarn workspaces