Skip to content

Locate the Google Chrome browser on your system

License

Notifications You must be signed in to change notification settings

FortunatM/locate-chrome

 
 

Repository files navigation

locate-chrome experimental

Find Google Chrome on your system.

Based on chrome-location.

Usage

var locateChrome = require('locate-chrome');
// Use a callback
locateChrome(function(l) {
  console.log(l);
});
// Use the returned Promise
locateChrome.then(function(l) {
  console.log(l);
});

CLI Usage

stdout path to Chrome (or null):

> locate-chrome
# /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

Open Chrome (you'll need to use quotes if Chrome's path has spaces in it):

> "`locate-chrome`"

About

Locate the Google Chrome browser on your system

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 94.2%
  • JavaScript 5.8%