default-browser
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -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", |
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
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
5822
85