node-ejs-renderer/node_modules/default-browser/readme.md
2024-06-09 13:55:01 -04:00

25 lines
397 B
Markdown

# default-browser
> Get the default browser
Works on macOS, Linux, and Windows.
## Install
```sh
npm install default-browser
```
## Usage
```js
import defaultBrowser from 'default-browser';
console.log(await defaultBrowser());
//=> {name: 'Safari', id: 'com.apple.Safari'}
```
## Related
- [default-browser-cli](https://github.com/sindresorhus/default-browser-cli) - CLI for this package