# default-browser-id

> Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari

Latest version **5.0.1** (published 2025-11-14) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 63/100 (C)** — status: stable.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2025-11-14 |
| First published | 2014-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/default-browser-id) |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | macos, browser, default, plist, web, bundle, bundleid, id, identifier, uti |

## Links

- npm: https://www.npmjs.com/package/default-browser-id
- Repository: https://github.com/sindresorhus/default-browser-id
- Homepage: https://github.com/sindresorhus/default-browser-id#readme
- Issues: https://github.com/sindresorhus/default-browser-id/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/default-browser-id

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 5.0.1 (latest) — 2025-11-14
- 5.0.0 — 2023-12-18
- 4.0.0 — 2023-08-31
- 3.0.0 — 2021-03-07
- 2.0.0 — 2016-04-22
- 1.0.4 — 2015-05-19
- 1.0.3 — 2015-02-16
- 1.0.2 — 2014-12-10
- 1.0.1 — 2014-11-10
- 1.0.0 — 2014-08-14
- 0.1.2 — 2014-05-05
- 0.1.1 — 2014-01-27
- 0.1.0 — 2014-01-27

## README

# default-browser-id

> Get the [bundle identifier](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleIdentifier) of the default browser *(macOS)*\
> Example: `com.apple.Safari`

## Install

```sh
npm install default-browser-id
```

## Usage

```js
import defaultBrowserId from 'default-browser-id';

console.log(await defaultBrowserId());
//=> 'com.apple.Safari'
```

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