which-chrome
get Google Chrome path
Installation
npm
$ npm install which-chrome karma-chrome-launcher
Usage
var whichChrome = ; console; // => "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"console; // => "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"console; // => nullconsole; // => null
CLI
$ which-chrome Chrome/Applications/Google Chrome.app/Contents/MacOS/Google Chrome$ which-chrome ChromeCanary/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary$ which-chrome Chromium$ echo $?1$ which-chrome Dartium$ echo $?1
License
The MIT license. Please see LICENSE file.