chrome-location2
v1.0.1
Published
Approximates the current location of the Chrome browser across platforms. Will fallback to Chromium if location is not found.
Downloads
5
Maintainers
Readme
chrome-location2
Approximates the current location of the Chrome browser across platforms. Will fallback to Chromium if location is not found.
Usage
Via Node.js:
// Returns the path to chrome as a string.
const chromeLocation = require('chrome-location2')
console.log(chromeLocation())
// /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Via CLI:
> chrome-location2
# /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
Open Chrome (remember to use quotes as Chrome's path usually has spaces in it):
> "`chrome-location2`"
Acknowledgements
This project is adapted from chrome-location.
License
MIT (c) Cezar Augusto.