Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Get the bundle identifier of the default browser (OS X). Example: com.apple.Safari
JavaScript
branch: master
Failed to load latest commit information.
.editorconfig tweaks
.gitattributes init
.gitignore init
.jshintrc tweaks
.travis.yml Update .travis.yml
cli.js Use `meow` in CLI
index.js Minor tweaks
license tweaks
package.json Use `meow` in CLI
readme.md Minor tweaks
test.js tweaks

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.