Skip to content
Like which(1) unix command. Find the first instance of an executable in the PATH.
JavaScript
Find file
Pull request Compare This branch is 2 commits ahead, 37 commits behind npm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
LICENSE
README.md
package.json
which.js

README.md

The "which" util from npm's guts.

Finds the first instance of a specified executable in the PATH environment variable. Does not cache the results, so hash -r is not needed when the PATH changes.

Something went wrong with that request. Please try again.