multiwhich
node-which with multi-executable support: finds the first instance of a specified executable in the PATH environment variable.
const multiwhich = ; ;
Installation
npm install multiwhich
API
const multiwhich = ;
multiwhich(cmds [, options], callback)
cmds: Array
of strings
options: Object
(used as node-which options)
callback: Function
The API is almost the same as node-which
's, except for:
- It receives an array of executable names as its first argument.
- It passes an array of the resolved executable paths to the callback function.
const multiwhich = ; ;
License
Copyright (c) 2015 Shinnosuke Watanabe
Licensed under the MIT License.