JSPM

firefox-location2

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 779
  • Score
    100M100P100Q109693F
  • License MIT

Approximates the current location of the Firefox browser across platforms.

Package Exports

  • firefox-location2

Readme

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)

License

MIT (c) Cezar Augusto.