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

Specify error code if the executable is not found

JustBlackBird opened this issue · comments

I suggest to add error code such as ENOENT to not found errors. It could be useful for programmatic detection of what went wrong.

If the maintainers are interested in it I could provide a pull request.

Sounds good to me. Patch welcome! Please include tests. Thanks :)

@isaacs could you please review #28? I believe it can be used to close this issue.