JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11178378
  • Score
    100M100P100Q257420F
  • License MIT

Get the default browser (OS X)

Package Exports

  • default-browser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (default-browser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

default-browser Build Status

Get the default browser (OS X)

Install

npm install --save default-browser

Example

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

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

CLI

You can also use it as a CLI app by installing it globally:

npm install --global default-browser

Usage

default-browser

Which will for example output Safari.

License

MIT © Sindre Sorhus