xdg-default-browser
Get default browser on Linux
Last updated 10 years ago by kevva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install xdg-default-browser 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.1.0                                ...           latest (9 years ago)

4 Versions

  • 2.1.0                                ...           9 years ago
  • 2.0.0                                ...           9 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 4
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE