Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

x-default-browser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-default-browser - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

6

lib/detect-mac.js

@@ -1,2 +0,2 @@

var defaultBrowserMac = require('default-browser');
var defaultBrowserMac = require('default-browser-id');

@@ -7,3 +7,3 @@ var exec = require('child_process').exec;

defaultBrowserMac(function (err, browser) {
defaultBrowserMac(function (err, browserId) {
if(err) {

@@ -14,3 +14,3 @@ callback('Unable to retrieve default browser: ' + err);

var value = browser.id;
var value = browserId;
var valueLC = value.toLowerCase();

@@ -17,0 +17,0 @@

{
"name": "x-default-browser",
"version": "0.2.0",
"description": "Detect default web browser of the current user, cross-platiform (Win/Lin/Mac)",
"version": "0.3.0",
"description": "Detect default web browser of the current user, cross-platform (Win/Lin/Mac)",
"author": "Jakub Gieryluk <jakub.g.opensource@gmail.com>",

@@ -30,3 +30,3 @@ "license": "MIT",

"optionalDependencies": {
"default-browser": "1.0.0"
"default-browser-id": "1.0.2"
},

@@ -33,0 +33,0 @@ "devDependencies": {

@@ -23,3 +23,3 @@ # x-default-browser

* OS X:
* delegated to [default-browser from Sindre Sorhus](https://github.com/sindresorhus/default-browser)
* delegated to [default-browser-id from Sindre Sorhus](https://github.com/sindresorhus/default-browser-id)

@@ -62,3 +62,3 @@

* On Ubuntu, it will be `firefox.desktop`, `google-chrome.desktop`, `chromium-browser.desktop` or `opera.desktop`
* On MAC, it will be the bundle ID: `com.apple.Safari`, `com.google.chrome`, `com.operasoftware.Opera`, `org.mozilla.firefox` etc
* On Mac OS X, it will be the bundle ID: `com.apple.Safari`, `com.google.chrome`, `com.operasoftware.Opera`, `org.mozilla.firefox` etc

@@ -89,5 +89,6 @@ ## Usage from command line

* [default-browser](https://github.com/sindresorhus/default-browser) (OS X)
* [default-browser-id](https://github.com/sindresorhus/default-browser-id) (OS X)
* [win-detect-browsers](https://github.com/vweevers/win-detect-browsers) (Windows)
* [browser-launcher2](https://github.com/benderjs/browser-launcher2) (cross-platform)
* [opener](https://github.com/domenic/opener) (cross-platform)
* [node-open](https://github.com/pwnall/node-open) (cross-platform)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc