This commit is contained in:
Tutur33
2023-11-24 22:35:41 +01:00
parent 3c0b507a93
commit 7644b2a0f7
45165 changed files with 4803356 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
# 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