Find the root directory of a Node.js project or npm package
☆251Feb 1, 2026Updated last month
Alternatives and similar repositories for package-directory
Users that are interested in package-directory are comparing it to the libraries listed below
Sorting:
- Find the closest package.json file☆166Jun 5, 2025Updated 9 months ago
- Find a file or directory by walking up parent directories☆634Sep 16, 2025Updated 5 months ago
- Get the first path that exists on disk of multiple paths☆63Sep 15, 2025Updated 5 months ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last month
- Read a package.json file☆175Feb 8, 2026Updated 3 weeks ago
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Check if a path is inside another path☆40Sep 11, 2025Updated 5 months ago
- Let a globally installed package use a locally installed version of itself if available☆155Jul 22, 2024Updated last year
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months ago
- Read the closest package.json file☆268Nov 7, 2025Updated 3 months ago
- Convert a value to an array☆133Nov 9, 2021Updated 4 years ago
- Check if a value is a plain object☆104May 4, 2024Updated last year
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Get your PATH prepended with locally installed binaries☆107Oct 28, 2024Updated last year
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Check if something is a Node.js stream☆115Oct 28, 2024Updated last year
- Start a promise chain☆60Sep 16, 2025Updated 5 months ago
- Detect the indentation of code☆200Feb 2, 2026Updated last month
- Check if a value is an object☆42Apr 16, 2021Updated 4 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆70Jan 23, 2021Updated 5 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- Read and parse a JSON file☆248May 17, 2023Updated 2 years ago
- Make a function mimic another one☆96Oct 28, 2024Updated last year
- Check if a path exists☆155Mar 3, 2022Updated 4 years ago
- Get namespaced config from the closest package.json☆121Nov 5, 2023Updated 2 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 6 months ago
- Check if argv has a specific flag☆96Jul 19, 2021Updated 4 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Resolve the path of a module like require.resolve() but from a given path☆145Jan 23, 2021Updated 5 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago