Find the root directory of a Node.js project or npm package
☆252Feb 1, 2026Updated 2 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 10 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 2 months ago
- Let a globally installed package use a locally installed version of itself if available☆153Jul 22, 2024Updated last year
- Virtual machines for every use case on DigitalOcean • AdGet dependable uptime with 99.99% SLA, simple security tools, and predictable monthly pricing with DigitalOcean's virtual machines, called Droplets.
- 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 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
- Start a promise chain☆60Sep 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 5 months ago
- Make a function mimic another one☆96Oct 28, 2024Updated last year
- Simple, predictable pricing with DigitalOcean hosting • AdAlways know what you'll pay with monthly caps and flat pricing. Enterprise-grade infrastructure trusted by 600k+ customers.
- 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☆155Mar 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☆115Oct 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 2 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 last year
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click. Zero configuration with optimized deployments.
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 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 7 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 4 years ago
- Regular expression for matching scoped npm package names☆27Jul 9, 2022Updated 3 years ago
- GPUs on demand by Runpod - Special Offer Available • AdRun AI, ML, and HPC workloads on powerful cloud GPUs—without limits or wasted spend. Deploy GPUs in under a minute and pay by the second.
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆78Feb 3, 2026Updated 2 months ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Read and parse a JSON file☆248May 17, 2023Updated 2 years ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- Toggle the CLI cursor☆113Jul 26, 2024Updated last year