xdg-default-browser
v2.1.0
Published
Get default browser on Linux
Downloads
128,090
Readme
xdg-default-browser
Get default browser on Linux
Issues with the output should be reported on the Debian, Freedesktop.org, KDE, Gnome, or corresponding issue trackers.
Install
$ npm install --save xdg-default-browser
Usage
const xdgDefaultBrowser = require('xdg-default-browser');
xdgDefaultBrowser().then(browser => {
console.log(browser);
//=> {name: 'Google Chrome', id: 'google-chrome.desktop'}
});
Related
- default-browser - CLI for getting the default browser
License
MIT © Kevin Mårtensson