/firefox-location2

Approximates the current location of the Firefox browser across platforms.

Primary LanguageTypeScriptMIT LicenseMIT

firefox-location2 npm workflow downloads

Approximates the current location of the Firefox browser across platforms.

Usage

Via Node.js:

// ESM
import firefoxLocation from 'firefox-location2'

// Returns the path to Firefox as a string
console.log(firefoxLocation())
// /Applications/Firefox.app/Contents/MacOS/firefox

// CommonJS
const firefoxLocation = require('firefox-location')

Supported Platforms

  • macOS (darwin)
  • Windows (win32)
  • Linux (default fallback)

Related projects

License

MIT (c) Cezar Augusto.