npm / node-which

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: option to avoid throwing in whichSync

joeyparrish opened this issue · comments

For my purposes, it would be more convenient if I could avoid having whichSync throw and instead ask it to return null if the executable is not found.

May I offer to make a PR for this?

Sure, I'd be ok with this.