site-panzai/node_modules/default-browser
2026-11-13 13:57:04 +01:00
..
index.d.ts first commit 2026-11-13 13:57:04 +01:00
index.js first commit 2026-11-13 13:57:04 +01:00
license first commit 2026-11-13 13:57:04 +01:00
package.json first commit 2026-11-13 13:57:04 +01:00
readme.md first commit 2026-11-13 13:57:04 +01:00
windows.js first commit 2026-11-13 13:57:04 +01:00

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'}