Socket
Socket
Sign inDemoInstall

default-browser

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

default-browser - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1

9

index.js

@@ -22,8 +22,5 @@ import {promisify} from 'node:util';

const {stdout} = await execFileAsync('xdg-mime', ['query', 'default', 'x-scheme-handler/http']);
const name = titleize(stdout.trim().replace(/.desktop$/, '').replace('-', ' '));
return {
name,
id: stdout,
};
const id = stdout.trim();
const name = titleize(id.replace(/.desktop$/, '').replace('-', ' '));
return {name, id};
}

@@ -30,0 +27,0 @@

{
"name": "default-browser",
"version": "5.2.0",
"version": "5.2.1",
"description": "Get the default browser",

@@ -5,0 +5,0 @@ "license": "MIT",

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