Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

default-browser-id

sindresorhus50.9mMIT5.0.0TypeScript support: definitely-typed

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

macos, browser, default, plist, web, bundle, bundleid, id, identifier, uti

readme

default-browser-id

Get the bundle identifier of the default browser (macOS)\ Example: com.apple.Safari

Install

npm install default-browser-id

Usage

import defaultBrowserId from 'default-browser-id';

console.log(await defaultBrowserId());
//=> 'com.apple.Safari'