# xdg-default-browser

> Get default browser on Linux

Latest version **2.1.0** (published 2016-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install xdg-default-browser
pnpm add xdg-default-browser
yarn add xdg-default-browser
bun add xdg-default-browser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2016-04-22 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Kevin Mårtensson |
| Maintainers | kevva |
| Keywords | browser, default, linux |

## Links

- npm: https://www.npmjs.com/package/xdg-default-browser
- Repository: https://github.com/kevva/xdg-default-browser
- Homepage: https://github.com/kevva/xdg-default-browser#readme
- Issues: https://github.com/kevva/xdg-default-browser/issues
- npm.io page: https://npm.io/package/xdg-default-browser

## Dependencies (2)

- [execa](https://npm.io/package/execa.md) ^0.2.2
- [titleize](https://npm.io/package/titleize.md) ^1.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2016-04-22
- 2.0.0 — 2016-04-22
- 1.0.1 — 2015-05-08
- 1.0.0 — 2015-05-05

## README

# xdg-default-browser [![Build Status](https://travis-ci.org/kevva/xdg-default-browser.svg?branch=master)](https://travis-ci.org/kevva/xdg-default-browser)

> Get default browser on Linux

Issues with the output should be reported on the [Debian](https://bugs.debian.org), [Freedesktop.org](https://bugs.freedesktop.org/), [KDE](https://bugs.kde.org), [Gnome](https://bugzilla.gnome.org/), or corresponding issue trackers.


## Install

```
$ npm install --save xdg-default-browser
```


## Usage

```js
const xdgDefaultBrowser = require('xdg-default-browser');

xdgDefaultBrowser().then(browser => {
	console.log(browser);
	//=> {name: 'Google Chrome', id: 'google-chrome.desktop'}
});
```


## Related

* [default-browser](https://github.com/sindresorhus/default-browser) - CLI for getting the default browser


## License

MIT © [Kevin Mårtensson](https://github.com/kevva)

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