Which
Locate the executable path of a command on the PATH, mirroring the Unix which utility for Node.js, resolving shell aliases and lookup order, used by CLIs and build tools to find installed binaries.
Which at github.com/npm/node-which is a free ISC executable path resolver for Node.js, npm which 7.0.0 Node.js ^22.22.2 ^24.15.0 or >= 26, locates a command along the PATH resolving lookup order so CLIs and build tools find installed binaries, no sold commercial tier (data as of Nov 22, 2026).
*This is an affiliate link, we may earn a commission at no extra cost to you.
Is Which free?
Which: Which is free open-source software released under the ISC License; the which package latest 7.0.0 on npm requires Node.js ^22.22.2, ^24.15.0 or >= 26. It mirrors the Unix which utility to locate an executable along the PATH, resolving the lookup order used by the shell, so CLIs and build tools can confirm an installed binary before invoking it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Check the official page for current status before relying on it.
Frequently Asked Questions
Is Which free?
It depends on the licence. ISC licensed executable path resolver; there is no paid tier, and commercial use follows the ISC terms.
How much does Which cost?
Which is free open-source software released under the ISC License; the which package latest 7.0.0 on npm requires Node.js ^22.22.2, ^24.15.0 or >= 26. It mirrors the Unix which utility to locate an executable along the PATH, resolving the lookup order used by the shell, so CLIs and build tools can confirm an installed binary before invoking it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). Usage volume, plan limits and add-ons can push the bill above the figures shown, so confirm the current numbers on the vendor page before committing.
Where can I check Which's current pricing?
On Which's official site, linked from this page. We only publish a price after reading the vendor's own pricing page, so if this page shows no number, it means no traceable public price is on file — not that the tool is free.
What is Which?
Given a command name, the resolver walks the directories listed in PATH in order and returns the first matching executable, following the same precedence rules as the shell; this lets a tool detect whether a dependency such as git or a compiler is installed and where its binary lives.
How does pricing work?
The package installs free under the ISC license with no seat license; it resolves paths in-process, and commercial support would be outside the open-source project.
How does Which compare with other tools in Dev Workflow & Productivity?
Which is listed in the Dev Workflow & Productivity category, alongside 2 other tools we track here. 2 of those 2 peers have a dated price we read from the vendor's own pricing page, and the table below shows each tool's pricing model next to the exact rate on file — so the comparison is between published numbers, not between marketing pages.
| Tool | Pricing model | Key pricing on file | Price checked |
|---|---|---|---|
| Which | Open source | Which is free open-source software released under the ISC License; the which package latest 7.0.0 on npm requires Node.js ^22.22.2, ^24.15.0 or >= 26. It mirrors the Unix which utility to locate an executable along the PATH, resolving the lookup order used by the shell, so CLIs and build tools can confirm an installed binary before invoking it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Cross-spawn | Open source | Cross-spawn is free open-source software released under the MIT License; the cross-spawn package latest 7.0.6 on npm requires Node.js >= 8. It normalizes PATH lookup and shell resolution so a command array resolves the same executable on Windows, macOS and Linux, which removes platform-specific spawn failures in CLI tools and build scripts. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
| Npm Run Path | Open source | Npm-run-path is free open-source software released under the MIT License; the npm-run-path package latest 6.0.0 on npm requires Node.js >= 18. It assembles a PATH that prepends the local node_modules/.bin directories, so commands spawned outside an npm script still resolve project-local CLI binaries the way npm run does. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026). | Nov 22, 2026 |
3 of these 3 entries carry a specific price we read from the vendor's site. Where the column says there is no dated price on file, we have not verified a rate — treat that as unknown rather than free, and check the vendor's page before you budget for it.
Full pricing breakdown
Which: ISC licensed executable path resolver; there is no paid tier, and commercial use follows the ISC terms. Check the official site for any hosted plan.
Open source does not always mean every hosted version is free.
Key pricing: Which is free open-source software released under the ISC License; the which package latest 7.0.0 on npm requires Node.js ^22.22.2, ^24.15.0 or >= 26. It mirrors the Unix which utility to locate an executable along the PATH, resolving the lookup order used by the shell, so CLIs and build tools can confirm an installed binary before invoking it. No paid commercial edition or per-seat license is sold by the project (data as of Nov 22, 2026).
Estimate your monthly bill with our calculator →Or build a full stack around your budget →Pricing Guides & Comparisons
Plan prices in these guides are read from each vendor's own pricing page, with the date we checked them.
⭐ Rate this tool
How would you rate this tool?
🚀 Never Miss a New AI Coding Tool
Join 1,000+ developers getting our weekly roundup: new AI tools, student free tiers, exclusive discounts, and side project deals. No spam, unsubscribe anytime.
Current Alternatives
Cross-spawn
Cross-platform child process spawning helper for Node.js, normalizing PATH and shell resolution across Windows, macOS and Linux so command arrays launch the same executable everywhere, used by CLI tools and build scripts.
Npm Run Path
Builds the PATH environment variable to include node_modules/.bin for the current local project, so spawned commands resolve project-local CLI binaries the way npm scripts do, used in tooling and test runners.
Tool Information
- Official Websitegithub.com
- CategoryDev Workflow & Productivity
- PricingOpen Source
- Price checkedNov 22, 2026
