Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Get the bundle identifier of the default browser (OS X). Example: com.apple.Safari
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.jshintrc
.travis.yml
cli.js
index.js
license
package.json
readme.md
test.js

readme.md

default-browser-id Build Status

Get the bundle identifier of the default browser (OS X)
Example: com.apple.Safari

Usage

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

defaultBrowserId(function (err, browserId) {
    console.log(browserId);
    //=> 'com.apple.Safari'
});

CLI

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

  Example
    $ default-browser-id
    com.apple.Safari

License

MIT © Sindre Sorhus

Something went wrong with that request. Please try again.