sindresorhus / package-upView external linksLinks
Find the closest package.json file
☆166Jun 5, 2025Updated 8 months ago
Alternatives and similar repositories for package-up
Users that are interested in package-up are comparing it to the libraries listed below
Sorting:
- Find the root directory of a Node.js project or npm package☆251Feb 1, 2026Updated last week
- Find a file or directory by walking up parent directories☆634Sep 16, 2025Updated 4 months ago
- Read the closest package.json file☆268Nov 7, 2025Updated 3 months ago
- Find the root directory of a Node.js project or npm package☆27Jun 5, 2025Updated 8 months ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 5 months 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
- Get the first path that exists on disk of multiple paths☆62Sep 15, 2025Updated 4 months ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆96Jul 8, 2022Updated 3 years ago
- Read and parse a JSON file☆247May 17, 2023Updated 2 years ago
- Import a module like with `require()` but from a given path☆86Jul 8, 2022Updated 3 years ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆187Feb 19, 2023Updated 2 years ago
- Read a package.json file☆175Updated this week
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆14Apr 9, 2021Updated 4 years ago
- Get namespaced config from the closest package.json☆121Nov 5, 2023Updated 2 years ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- Get an array of valid, sorted, and cleaned semver versions from an array of strings☆41Apr 21, 2021Updated 4 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Get metadata on the default editor or a specific editor☆55Sep 10, 2025Updated 5 months ago
- Get a random key from an object☆18Jul 2, 2024Updated last year
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆40Jan 24, 2026Updated 3 weeks ago
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Truncate a URL to a specific length☆62Sep 22, 2025Updated 4 months ago
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- Modify the filename in a path☆17Jul 9, 2022Updated 3 years ago
- Get the version of a binary in semver format☆42Apr 3, 2024Updated last year
- Reliably get the terminal window size☆146Feb 2, 2026Updated last week
- Get the latest version of an npm package☆177Feb 27, 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 diff type of two semver versions: 0.0.1 0.0.2 → patch☆69Sep 15, 2025Updated 4 months ago
- Check if a value is a function☆29May 3, 2021Updated 4 years ago
- Get the callsite of the caller function☆54Sep 21, 2025Updated 4 months ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago