Get the default browser
JavaScript
Latest commit 086d641 Jun 14, 2016 @sindresorhus 2.0.1
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

default-browser Build Status

Get the default browser (macOS and Linux)

Install

$ npm install --save default-browser

Usage

const defaultBrowser = require('default-browser');

defaultBrowser().then(browser => {
    console.log(browser);
    //=> {name: 'Safari', id: 'com.apple.Safari'}
});

Related

License

MIT © Sindre Sorhus