2.1.0 • Published 8 years ago

xdg-default-browser v2.1.0

Weekly downloads
92
License
MIT
Repository
github
Last release
8 years ago

xdg-default-browser Build Status

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

License

MIT © Kevin Mårtensson