Spaces:
Sleeping
Sleeping
File size: 397 Bytes
d4f5807 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# 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
|