locate-firefox
v0.1.1
Published
Find Firefox on your system
Downloads
205
Maintainers
Readme
locate-firefox
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`"