hughsk / chrome-location

Approximates the current location of Google Chrome on your system
Other
19 stars 6 forks source link

chrome-location experimental

Approximates the current location of Google Chrome on your system.

Originally sourced from karma-chrome-launcher.

Usage

NPM

location = require('chrome-location')

Returns the path to Google Chrome as a string.

CLI Usage

stdout path to Chrome:

> chrome-location
# /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Open Chrome (remember to use quotes as Chrome's path usually has spaces in it):

> "`chrome-location`"

License

MIT. See LICENSE.md for details.