x-default-browser
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19271
92
4