Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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 912,849 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.