davidtheclark / locate-firefox

Find Firefox on your system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

locate-firefox experimental

Find Firefox on your system.

Usage

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

CLI Usage

stdout path to Firefox (or null):

> locate-firefox
# /Applications/Firefox.app/Contents/MacOS/Firefox

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

> "`locate-firefox`"

About

Find Firefox on your system

License:MIT License


Languages

Language:JavaScript 100.0%