Like which(1) unix command. Find the first instance of an executable in the PATH.
Pull request Compare This branch is 61 commits behind npm:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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.