删除 node_modules
This commit is contained in:
5
node_modules/bundle-name/index.js
generated
vendored
5
node_modules/bundle-name/index.js
generated
vendored
@@ -1,5 +0,0 @@
|
||||
import {runAppleScript} from 'run-applescript';
|
||||
|
||||
export default async function bundleName(bundleId) {
|
||||
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")`);
|
||||
}
|
||||
9
node_modules/bundle-name/license
generated
vendored
9
node_modules/bundle-name/license
generated
vendored
@@ -1,9 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
45
node_modules/bundle-name/package.json
generated
vendored
45
node_modules/bundle-name/package.json
generated
vendored
@@ -1,45 +0,0 @@
|
||||
{
|
||||
"name": "bundle-name",
|
||||
"version": "4.1.0",
|
||||
"description": "Get bundle name from a bundle identifier (macOS): `com.apple.Safari` → `Safari`",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/bundle-name",
|
||||
"funding": "https://github.com/sponsors/sindresorhus",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "https://sindresorhus.com"
|
||||
},
|
||||
"type": "module",
|
||||
"exports": "./index.js",
|
||||
"sideEffects": false,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"macos",
|
||||
"plist",
|
||||
"applescript",
|
||||
"bundle",
|
||||
"bundleid",
|
||||
"bundlename",
|
||||
"id",
|
||||
"identifier",
|
||||
"CFBundleName",
|
||||
"CFBundleIdentifier",
|
||||
"uti"
|
||||
],
|
||||
"dependencies": {
|
||||
"run-applescript": "^7.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^6.0.1",
|
||||
"xo": "^0.56.0"
|
||||
}
|
||||
}
|
||||
23
node_modules/bundle-name/readme.md
generated
vendored
23
node_modules/bundle-name/readme.md
generated
vendored
@@ -1,23 +0,0 @@
|
||||
# bundle-name
|
||||
|
||||
> Get [bundle name](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleName) from a [bundle identifier](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleIdentifier) (macOS): `com.apple.Safari` → `Safari`
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
npm install bundle-name
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import bundleName from 'bundle-name';
|
||||
|
||||
console.log(await bundleName('com.apple.Safari'));
|
||||
//=> 'Safari'
|
||||
```
|
||||
|
||||
## Related
|
||||
|
||||
- [bundle-name-cli](https://github.com/sindresorhus/bundle-name-cli) - CLI for this module
|
||||
- [bundle-id](https://github.com/sindresorhus/bundle-id) - Get bundle identifier from a bundle name
|
||||
Reference in New Issue
Block a user