Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Get the default browser (OS X)
JavaScript
branch: master
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore init
.jshintrc
.travis.yml
cli.js Use `meow` in CLI
index.js
license tweaks
package.json
readme.md Use `meow` in CLI
test.js

readme.md

default-browser Build Status

Get the default browser (OS X and Linux)

Usage

$ npm install --save default-browser
var defaultBrowser = require('default-browser');

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

CLI

$ npm install --global default-browser
$ default-browser --help

  Example
    $ default-browser
    Safari

License

MIT © Sindre Sorhus

Something went wrong with that request. Please try again.