1.0.1 • Published 2 years ago

chrome-location2 v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

chrome-location2 workflow npm

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.