which

Like which(1) unix command. Find the first instance of an executable in the PATH.

npm install which
19 597 downloads in the last day
144 673 downloads in the last week
602 905 downloads in the last month

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.

npm loves you