default-browser
TypeScript icon, indicating that this package has built-in type declarations

5.2.1 • Public • Published

default-browser

Get the default browser

Works on macOS, Linux, and Windows.

Install

npm install default-browser

Usage

import defaultBrowser from 'default-browser';

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

Related

Package Sidebar

Install

npm i default-browser

Weekly Downloads

3,446,535

Version

5.2.1

License

MIT

Unpacked Size

5.82 kB

Total Files

6

Last publish

Collaborators

  • sindresorhus