bundle-name
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -1,5 +0,5 @@ | ||
import {runAppleScriptAsync} from 'run-applescript'; | ||
import {runAppleScript} from 'run-applescript'; | ||
export default async function bundleName(bundleId) { | ||
return runAppleScriptAsync(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`); | ||
return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`); | ||
} |
{ | ||
"name": "bundle-name", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"description": "Get bundle name from a bundle identifier (macOS): `com.apple.Safari` → `Safari`", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=18" | ||
}, | ||
@@ -39,8 +39,8 @@ "scripts": { | ||
"dependencies": { | ||
"run-applescript": "^5.0.0" | ||
"run-applescript": "^6.1.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^3.15.0", | ||
"xo": "^0.38.2" | ||
"ava": "^5.3.1", | ||
"xo": "^0.56.0" | ||
} | ||
} |
@@ -7,5 +7,5 @@ # bundle-name | ||
```sh | ||
npm install bundle-name | ||
``` | ||
$ npm install bundle-name | ||
``` | ||
@@ -12,0 +12,0 @@ ## Usage |
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
3123
+ Addedrun-applescript@6.1.0(transitive)
- Removedrun-applescript@5.0.0(transitive)
Updatedrun-applescript@^6.1.0