Find a file or directory by walking up parent directories
Find the root directory of a Node.js project or npm package
Find the first file matching a given pattern in the current directory or the nearest ancestor directory.
Find a file or directory by walking up parent directories — Zero dependencies
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.