Find the root directory of a Node.js project or npm package
☆254Sep 18, 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. We may earn a commission when you buy through links labeled 'Ad' on this page.
Sorting:
- Find a file or directory by walking up parent directories☆642Sep 18, 2026Updated last month
- Get the first path that exists on disk of multiple paths☆64Sep 18, 2026Updated last month
- Find the closest package.json file☆166Sep 18, 2026Updated last month
- Let a globally installed package use a locally installed version of itself if available☆154Sep 18, 2026Updated last month
- Strip the final newline character from a string/buffer☆38Sep 18, 2026Updated last month
- Deploy to Railway using AI coding agents - Free Credits Offer • AdUse Claude Code, Codex, OpenCode, and more. Autonomous software development now has the infrastructure to match with Railway.
- Read a package.json file☆176Sep 18, 2026Updated last month
- Check if a path is inside another path☆40Sep 18, 2026Updated last month
- Check if a path is a file, directory, or symlink☆81Sep 18, 2026Updated last month
- Make a function mimic another one☆97Sep 18, 2026Updated last month
- Check if a file path is a binary file☆50Sep 18, 2026Updated last month
- Check if a path is the current working directory☆22Sep 18, 2026Updated last month
- Regular expression for matching a shebang line☆48Sep 18, 2026Updated last month
- Read the closest package.json file☆267Sep 18, 2026Updated last month
- Resolve the path of a module like require.resolve() but from a given path☆145Sep 18, 2026Updated last month
- 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.
- Create an array with values that are present in the first input array but not additional ones☆40Sep 18, 2026Updated last month
- Get the PATH environment variable key cross-platform☆46Sep 18, 2026Updated last month
- Check if a path exists☆155Sep 18, 2026Updated last month
- Check if a path is in the current working directory☆23Sep 18, 2026Updated last month
- DES for browserify☆10Dec 21, 2024Updated last year
- Gracefully restore the CLI cursor on exit☆42Sep 18, 2026Updated last month
- Start a promise chain☆62Sep 18, 2026Updated last month
- Check if something is a Node.js stream☆116Sep 18, 2026Updated last month
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 5 years ago
- 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 number is a redirect HTTP status code☆25Sep 18, 2026Updated last month
- Convert a value to an array☆134Sep 18, 2026Updated last month
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Sep 18, 2026Updated last month
- Get your PATH prepended with locally installed binaries☆109Sep 18, 2026Updated last month
- Removes all separators from the end of a string.☆12Dec 12, 2017Updated 8 years ago
- Get the first fulfilled promise that satisfies the provided testing function☆82Sep 18, 2026Updated last month
- Minimal module to check if a file is executable.☆52Feb 9, 2026Updated 8 months ago
- Strip redundant indentation and indent the string☆56Sep 18, 2026Updated last month
- Resolve the path of a module like `require.resolve()` but from the current working directory☆70Sep 18, 2026Updated last month
- 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.
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 5 years ago
- Autoload Plugins for PostCSS☆20May 11, 2020Updated 6 years ago
- Toggle the CLI cursor☆115Sep 18, 2026Updated last month
- Read and parse a JSON file☆250Sep 18, 2026Updated last month
- A cache for managing namespaced sub-caches☆14Sep 4, 2021Updated 5 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Get the real path of the system temp directory☆85Sep 18, 2026Updated last month