# edge-paths

> Get the paths of edge browser easily

Latest version **3.0.5** (published 2023-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install edge-paths
pnpm add edge-paths
yarn add edge-paths
bun add edge-paths
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.0.5 |
| Published | 2023-01-03 |
| First published | 2020-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.0.0 |
| Dependencies | 2 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | shirshak |
| Maintainers | shirshak |
| Keywords | browser, edge, paths, edge-paths, exists, path |

## Links

- npm: https://www.npmjs.com/package/edge-paths
- Repository: https://github.com/shirshak55/edge-paths
- Funding: https://github.com/sponsors/shirshak55
- npm.io page: https://npm.io/package/edge-paths

## Dependencies (2)

- [which](https://npm.io/package/which.md) ^2.0.2
- [@types/which](https://npm.io/package/@types/which.md) ^2.0.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 3.0.5 (latest) — 2023-01-03
- 3.0.4 — 2023-01-03
- 3.0.3 — 2023-01-03
- 3.0.2 — 2023-01-03
- 3.0.1 — 2023-01-03
- 3.0.0 — 2023-01-03
- 2.2.1 — 2021-01-21
- 2.2.0 — 2021-01-21
- 2.1.0 — 2020-06-26
- 2.0.0 — 2020-05-29
- 1.0.5 — 2020-01-26
- 1.0.4 — 2020-01-26
- 1.0.3 — 2020-01-26
- 1.0.2 — 2020-01-26
- 1.0.1 — 2020-01-26
- … 1 more at https://npm.io/package/edge-paths/versions

## README

# Edge Paths

[![npm version](https://img.shields.io/npm/v/edge-paths.svg)](https://www.npmjs.com/package/edge-paths)
[![Downloads](https://img.shields.io/npm/dm/edge-paths.svg)](https://npmjs.com/edge-paths)
[![Install size](https://packagephobia.now.sh/badge?p=edge-paths)](https://packagephobia.now.sh/result?p=edge-paths)
![Test Edge Paths](https://github.com/shirshak55/edge-paths/workflows/Test%20Edge%20Paths/badge.svg)

Possible paths or binary names of [Edge](https://www.microsoft.com/en-us/edge) in the current platform

### Why?

-   Well Documented
-   Well Tested
-   Used by popular players
-   Written with Love <3
-   Fully open sourced

### Usage

-   At the moment linux support is only avail for dev channel. Once canary, beta and stable version are release
    we shall update the package.

###### Javascript

```javascript
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

```javascript
// 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
```

###### Typescript

```typescript
import {
	getEdgeBetaPath,
	getEdgeCanaryPath,
	getEdgeDevPath,
	getEdgePath,
} from "edge-paths"

console.log(getEdgeBetaPath())
console.log(getEdgeCanaryPath())
console.log(getEdgeDevPath())
console.log(getEdgePath())
```

## Installation

[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).

```bash
$ npm install edge-paths

// or

$ yarn add edge-paths
```

## API

```javascript
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.

## Used By

-   [devtools](https://www.npmjs.com/package/devtools)

-   Please send PR if you are using edge paths. We will be accepting first 10 request.

## License

[MIT License](./LICENSE)

© 2020 Shirshak Bajgain

---
_Source: https://npm.io/package/edge-paths · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
