Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
5
node_modules/bundle-name/index.js
generated
vendored
Normal file
5
node_modules/bundle-name/index.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
import {runAppleScriptAsync} 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")`);
|
||||
}
|
9
node_modules/bundle-name/license
generated
vendored
Normal file
9
node_modules/bundle-name/license
generated
vendored
Normal file
|
@ -0,0 +1,9 @@
|
|||
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.
|
44
node_modules/bundle-name/package.json
generated
vendored
Normal file
44
node_modules/bundle-name/package.json
generated
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"name": "bundle-name",
|
||||
"version": "3.0.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",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"keywords": [
|
||||
"macos",
|
||||
"plist",
|
||||
"applescript",
|
||||
"bundle",
|
||||
"bundleid",
|
||||
"bundlename",
|
||||
"id",
|
||||
"identifier",
|
||||
"CFBundleName",
|
||||
"CFBundleIdentifier",
|
||||
"uti"
|
||||
],
|
||||
"dependencies": {
|
||||
"run-applescript": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"ava": "^3.15.0",
|
||||
"xo": "^0.38.2"
|
||||
}
|
||||
}
|
23
node_modules/bundle-name/readme.md
generated
vendored
Normal file
23
node_modules/bundle-name/readme.md
generated
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
# 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
|
||||
|
||||
```
|
||||
$ 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
|
Loading…
Add table
Add a link
Reference in a new issue