node-ejs-renderer/node_modules/default-browser
2024-06-09 13:55:01 -04:00
..
index.d.ts Main initial commit 2024-06-09 13:55:01 -04:00
index.js Main initial commit 2024-06-09 13:55:01 -04:00
license Main initial commit 2024-06-09 13:55:01 -04:00
package.json Main initial commit 2024-06-09 13:55:01 -04:00
readme.md Main initial commit 2024-06-09 13:55:01 -04:00
windows.js Main initial commit 2024-06-09 13:55:01 -04: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'}