default-browser
npmv5.5.0TypeScriptGet the default browser
Overview
default-browser is an npm package that get the default browser. It is extremely widely used, with about 44.9M downloads per week and 1 known dependents in the graph. The latest version is 5.5.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need get the default browser and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (44.9M weekly downloads).
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of default-browser.
Dependencies
Runtime (2)
Dev (3)
Used by
Popular packages that depend on default-browser.
Alternatives to default-browser
Open stuff like URLs, files, executables. Cross-platform.
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
Apple's property list parser/builder for Node.js and browsers
A JavaScript library to zip and unzip files in the browser, Deno and Node.js
Implements the WebIDL algorithms for converting to and from JavaScript values
Converts a source-map from/to different formats and allows adding/changing properties.
Browser-friendly inheritance fully compatible with standard node.js inherits()
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
A library for parsing IPv4 and IPv6 IP addresses in node and the browser.
Get paths for storing things like data, config, cache, etc
Public API for OpenTelemetry
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Frequently installed together
TypeScript definitions for node
Define a lazily evaluated property on an object
Utilities for working with Windows Subsystem for Linux (WSL)
Check if the process is running in an SSH session
Check if the process is running inside a container (Docker/Podman)
Version history
| Version | Published | License |
|---|---|---|
| 5.5.0latest | 5 months ago | MIT |
| 5.4.0 | 8 months ago | MIT |
| 5.3.0 | 8 months ago | MIT |
| 5.2.1 | 2 years ago | MIT |
| 5.2.0 | 2 years ago | MIT |
| 5.1.0 | 2 years ago | MIT |
| 5.0.0 | 2 years ago | MIT |
| 4.0.0 | 3 years ago | MIT |
| 3.1.0 | 4 years ago | MIT |
| 3.0.0 | 5 years ago | MIT |
| 2.0.1 | 10 years ago | MIT |
| 2.0.0 | 10 years ago | MIT |
| 1.0.0 | 12 years ago | MIT |
| 0.1.1 | 12 years ago | MIT |
| 0.1.0 | 12 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install default-browser?
Run `npm install default-browser` to add default-browser to your npm project.
What license is default-browser released under?
default-browser is distributed under the MIT license.
How popular is default-browser?
default-browser has approximately 44,943,080 downloads per week and 1 known dependent packages.