Find the root directory of a Node.js project or npm package
☆250Feb 1, 2026Updated 3 months ago
Alternatives and similar repositories for package-directory
Users that are interested in package-directory are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Find the closest package.json file☆166Jun 5, 2025Updated 11 months ago
- Get the first path that exists on disk of multiple paths☆64Sep 15, 2025Updated 7 months ago
- Find a file or directory by walking up parent directories☆638Sep 16, 2025Updated 7 months ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated 3 months ago
- Let a globally installed package use a locally installed version of itself if available☆153Jul 22, 2024Updated last year
- Open source password manager - Proton Pass • AdSecurely store, share, and autofill your credentials with Proton Pass, the end-to-end encrypted password manager trusted by millions.
- Strip the final newline character from a string/buffer☆38Oct 28, 2024Updated last year
- Read a package.json file☆175Feb 8, 2026Updated 2 months ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 7 months ago
- Check if a file path is a binary file☆49Apr 30, 2024Updated 2 years ago
- Create an array with values that are present in the first input array but not additional ones☆40Sep 14, 2021Updated 4 years ago
- Start a promise chain☆62Sep 16, 2025Updated 7 months ago
- Get the PATH environment variable key cross-platform☆46Sep 12, 2025Updated 7 months ago
- Read the closest package.json file☆268Nov 7, 2025Updated 6 months ago
- Make a function mimic another one☆96Oct 28, 2024Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting for WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Deploy in minutes on Cloudways by DigitalOcean.
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Convert a value to an array☆133Nov 9, 2021Updated 4 years ago
- Check if a path exists☆156Mar 3, 2022Updated 4 years ago
- Get your PATH prepended with locally installed binaries☆108Oct 28, 2024Updated last year
- Check if something is a Node.js stream☆116Oct 28, 2024Updated last year
- Transform the first chunk in a stream☆28Nov 1, 2023Updated 2 years ago
- Detect the indentation of code☆199Feb 2, 2026Updated 3 months ago
- Check if a path is the current working directory☆22May 10, 2025Updated 11 months ago
- Check if a value is a plain object☆104May 4, 2024Updated 2 years ago
- Deploy on Railway without the complexity - Free Credits Offer • AdConnect your repo and Railway handles the rest with instant previews. Quickly provision container image services, databases, and storage volumes.
- Check if a path is in the current working directory☆23May 3, 2021Updated 5 years ago
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- Check if the character represented by a given Unicode code point is fullwidth☆51Aug 31, 2025Updated 8 months ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆70Jan 23, 2021Updated 5 years ago
- Resolve the path of a module like require.resolve() but from a given path☆145Jan 23, 2021Updated 5 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 5 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 5 years ago
- Managed Database hosting by DigitalOcean • AdPostgreSQL, MySQL, MongoDB, Kafka, Valkey, and OpenSearch available. Automatically scale up storage and focus on building your apps.
- Get the first fulfilled promise that satisfies the provided testing function☆79Feb 3, 2026Updated 3 months ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Regular expression for matching scoped npm package names☆28Jul 9, 2022Updated 3 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Read and parse a JSON file☆249May 17, 2023Updated 2 years ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- Toggle the CLI cursor☆114Jul 26, 2024Updated last year