Package Exports
- chrome-location2
- chrome-location2/module.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (chrome-location2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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.