Approximates the current location of the Edge browser across platforms.
Via Node.js:
// ESM
import edgeLocation from 'edge-location'
// Returns the path to Edge as a string
console.log(edgeLocation)
// /Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge
// CommonJS
const edgeLocation = require('edge-location')
- macOS (darwin)
- Windows (win32)
- Linux (default fallback)
- chrome-location
-
chrome-location2 (like
chromium-location
with fallback support to Chromium) - firefox-location
- brave-location
- vivaldi-location
- opera-location
MIT (c) Cezar Augusto.