Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
edge-paths
Advanced tools
The edge-paths npm package is designed to provide the path to the Microsoft Edge browser executable on different operating systems. This can be useful for developers who need to programmatically launch or interact with the Edge browser in their applications.
Get Edge Path
This feature allows you to retrieve the path to the Microsoft Edge executable. The code sample demonstrates how to use the edge-paths package to get the path and print it to the console.
const edgePaths = require('edge-paths');
const edgePath = edgePaths.getEdgePath();
console.log(edgePath);
The chrome-paths package provides the path to the Google Chrome browser executable on different operating systems. Similar to edge-paths, it helps developers programmatically locate the Chrome browser for launching or interacting with it.
Puppeteer is a Node library that provides a high-level API to control Chrome or Chromium over the DevTools Protocol. While it does more than just provide the path to the browser executable, it includes functionality to launch and interact with the browser, making it a more comprehensive tool compared to edge-paths.
Possible paths or binary names of Edge in the current platform
import {
getEdgeBetaPath,
getEdgeCanaryPath,
getEdgeDevPath,
getEdgePath,
getAnyEdgeStable,
getAnyEdgeLatest,
} from "./dist/index.js"
console.log(getEdgeBetaPath())
console.log(getEdgeCanaryPath())
console.log(getEdgeDevPath())
console.log(getEdgePath())
// console.log(getAnyEdgeStable())
// console.log(getAnyEdgeLatest())
The output shall look like this according to your installation
// On OSX
// /Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Beta
// /Applications/Microsoft Edge Canary.app/Contents/MacOS/Microsoft Edge Canary
// /Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge Dev
// /Applications/Microsoft Edge Beta.app/Contents/MacOS/Microsoft Edge
// On Windows
// C:\Program Files (x86)\Microsoft\Edge Beta\Application\msedge.exe
// C:\Program Files (x86)\Microsoft\Edge Canary\Application\msedge.exe
// C:\Program Files (x86)\Microsoft\Edge Dev\Application\msedge.exe
// C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
// On Linux
// Beta edge not avail yet
// Canary not avail
// /usr/bin/microsoft-edge-dev
// Stable not avail
import {
getEdgeBetaPath,
getEdgeCanaryPath,
getEdgeDevPath,
getEdgePath,
} from "edge-paths"
console.log(getEdgeBetaPath())
console.log(getEdgeCanaryPath())
console.log(getEdgeDevPath())
console.log(getEdgePath())
$ npm install edge-paths
// or
$ yarn add edge-paths
import {
getEdgeBetaPath,
getEdgeCanaryPath,
getEdgeDevPath,
getEdgePath,
getAnyEdgeStable,
getAnyEdgeLatest,
} from "./dist/index.js"
getAnyEdgeStable
or getAnyEdgeLatest
might be more useful if you don't want any specific version.Please send PR if you are using edge paths. We will be accepting first 10 request.
© 2020 Shirshak Bajgain
FAQs
Get the paths of edge browser easily
The npm package edge-paths receives a total of 655,097 weekly downloads. As such, edge-paths popularity was classified as popular.
We found that edge-paths demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.