![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 192,084 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.