chrome-location2

1.0.1 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i chrome-location2

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

4.77 kB

Total Files

8

Last publish

Collaborators

  • cezaraugusto