/chrome-location2

Approximates the current location of the Chrome browser across platforms

Primary LanguageTypeScriptMIT LicenseMIT

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

Related projects

Acknowledgements

This project is adapted from chrome-location.

License

MIT (c) Cezar Augusto.