default-browser-id
npmv5.0.1Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari
Safe to adopt
Yes — default-browser-id scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 300 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 300 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 3.1 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding default-browser-id to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >=18
- Module format
- ESM only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the default-browser-id README.
import defaultBrowserId from 'default-browser-id';
console.log(await defaultBrowserId());
//=> 'com.apple.Safari'default-browser-id vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| default-browser-idthis page | 0 | 1 | MIT | 10 months ago |
| default-browser | 52.6M | 1 | MIT | 1 day ago |
| open | 130.4M | 4 | MIT | 1 day ago |
| plist | 14M | 2 | MIT | 1 day ago |
| happy-dom | 0 | 6 | MIT | 1 day ago |
| @zip.js/zip.js | 0 | 2 | BSD-3-Clause | 1 day ago |
Dependencies
Declared by default-browser-id v5.0.1. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (2)
Used by
Popular packages that depend on default-browser-id.
Relationship graph
Dependencies (left) and dependents (right) of default-browser-id.
Release history
1 release in the last two years, typically about 102 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 5.0.1latest | 10 months ago | 3.1 KB | MIT |
| 5.0.0 | 2 years ago | 2.9 KB | MIT |
| 4.0.0 | 3 years ago | 3.4 KB | MIT |
| 3.0.0 | 5 years ago | 3.4 KB | MIT |
| 2.0.0 | 10 years ago | — | MIT |
| 1.0.4 | 11 years ago | — | MIT |
| 1.0.3 | 11 years ago | — | MIT |
| 1.0.2 | 11 years ago | — | MIT |
| 1.0.1 | 12 years ago | — | MIT |
| 1.0.0 | 12 years ago | — | MIT |
| 0.1.2 | 12 years ago | — | MIT |
| 0.1.1 | 12 years ago | — | MIT |
| 0.1.0 | 12 years ago | — | MIT |
Overview
default-browser-id is an npm package that get the bundle identifier of the default browser (macOS). Example: com.apple.Safari. It has 1 known dependents in the graph. The latest version is 5.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get the bundle identifier of the default browser (macOS). Example: com.apple.Safari and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Lean dependency tree (2 direct dependencies).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use default-browser-id?
Yes — default-browser-id scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 300 days ago.
How do I install default-browser-id?
Run `npm install default-browser-id` to add default-browser-id to your npm project.
What license is default-browser-id released under?
default-browser-id is distributed under the MIT license.
How popular is default-browser-id?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on default-browser-id.
Is default-browser-id still maintained?
The most recent release of default-browser-id (v5.0.1) was published 10 months ago.
Does default-browser-id run install scripts?
No. default-browser-id does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.