0.1.1 • Published 7 years ago

which-chrome v0.1.1

Weekly downloads
16
License
MIT
Repository
github
Last release
7 years ago

which-chrome

Build Status Dependency Status npm version

get Google Chrome path

Installation

npm

$ npm install which-chrome karma-chrome-launcher

Usage

var whichChrome = require('which-chrome');

console.log(whichChrome.Chrome);        // => "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
console.log(whichChrome.ChromeCanary);  // => "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary"
console.log(whichChrome.Chromium);      // => null
console.log(whichChrome.Dartium);       // => 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.