Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
.github/workflows | 2 years ago | |
dist | 2 years ago | |
src | 2 years ago | |
tests | 2 years ago | |
.prettierrc | 2 years ago | |
LICENSE | 2 years ago | |
example.js | 2 years ago | |
example.ts | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago | |
tsconfig.json | 2 years ago |
Possible paths or binary names of Edge in the current platform
let {
getEdgeBetaPath,
getEdgeCanaryPath,
getEdgeDevPath,
getEdgePath,
getAnyEdgeStable,
getAnyEdgeLatest,
} = require("edge-paths")
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
let {
getEdgeBetaPath,
getEdgeCanaryPath,
getEdgeDevPath,
getEdgePath,
getAnyEdgeStable,
getAnyEdgeLatest,
} = require("edge-paths")
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