default-browser
v5.2.1
Published
Get the default browser
Downloads
24,142,807
Maintainers
Readme
default-browser
Get the default browser
Works on macOS, Linux, and Windows.
Install
npm install default-browser
Usage
import defaultBrowser from 'default-browser';
console.log(await defaultBrowser());
//=> {name: 'Safari', id: 'com.apple.Safari'}
Related
- default-browser-cli - CLI for this package