{"name":"app-path","version":"3.3.0","description":"Get the path to an app (macOS)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/app-path.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd","compile-x64":"clang main.m -fmodules -mmacosx-version-min=10.6 -target x86_64-apple-darwin -o main-x64","compile-arm64":"clang main.m -fmodules -mmacosx-version-min=11.0 -target arm64-apple-darwin -o main-arm64","compile":"npm run compile-x64 && npm run compile-arm64 && lipo -create -output main main-x64 main-arm64 && rm main-x64 main-arm64"},"keywords":["macos","applescript","app","application","path","directory","bundle","location"],"dependencies":{"execa":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.1","xo":"^0.24.0"},"gitHead":"b711a79696e9b28d1f913db35684707dd5bdcc39","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path#readme","_id":"app-path@3.3.0","_nodeVersion":"16.0.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-EAgEXkdcxH1cgEePOSsmUtw9ItPl0KTxnh/pj9ZbhvbKbij9x0oX6PWpGnorDr0DS5AosLgoa5n3T/hZmKQpYA==","shasum":"0342a909db37079c593979c720f99e872475eba3","tarball":"http://registry-npm.ywwl.com/app-path/download/app-path-3.3.0.tgz","fileCount":6,"unpackedSize":121041,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgimRICRA9TVsSAnZWagAAkPcP/1tKin2FP/ddBPMc/VZo\n13abaiHdGo7w070qmukQRGdLf98TfHb+Puf1JDztWxAUxQOAe7l2ITU7ZiPE\naBN6j43jG2CUcOklCLtpab51ReCiKRSiBjccit47eR8SCphuPVMUemY+q0Sc\nTKuOfnPQY7sLi2lNwZoo1mid3xQZ4ss4OwYIKfwmMYhdSFDGYoRtrjpoCenE\nDF1eN5bwR6bEpzBgw3oyZQyVZkMtAisby1VYfS83ffnnn/JfXtbNFKORiOJo\n437QE+2hfi7HXsQnqwOUkgH4nYcEJHNIP14zdWVoPw3Widmo64QcK/dVvhR4\nQ0hEpopGkWyfsfR+KRRHItK+vJ9/f7k3R2Wne4wjjkS9ROwVJPSLOpBMYiHJ\n7tuZhFgg8NqoXqUmmM/1aaJPl6fsRSUEJKln8cFtFIBALlChQQdvZi+89A0u\nE9qXVM0UYRtWshx3CgUea8G7UB6HNyHX2f60nJv3dabGfLwrBixa9xhy94QF\nXweI+EtnXiKD52s3K4iKqvGlPE4raifRPKSXiBSekDtKDL9E62SbrikwKOs6\nxJsKrVkgJPZrdxGQLUXA6RM+AxDoWuja2g1urwdTbQK8hcP2O0G0nN9iVp6K\nhqHJcAxqgTXY+MPVe7T9+pGwKigAgUFytdsIchd3Ojocrj4X8WKdKcEZwbj3\nNIZp\r\n=K+aE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmh1pr4k0ppw9ti37Yz5IqWduIY0U+9nj2dsqyguA5TAiEAhTI9EBnc2YF2JYGRA3KlNYQ3JFBtsiJPvsoMKwN82F0="}],"size":6365,"noattachment":false,"key":"/app-path/-/app-path-3.3.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_3.3.0_1619682376159_0.5152462895426977"},"_hasShrinkwrap":false,"readme":"# app-path\n\n> Get the path to an app *(macOS)*\n\n## Install\n\n```\n$ npm install app-path\n```\n\n## Usage\n\n```js\nimport appPath from 'app-path';\n\nconsole.log(await appPath('Safari'));\n//=> '/Applications/Safari.app'\n\nconsole.log(await appPath('com.apple.Safari'));\n//=> '/Applications/Safari.app'\n\nconsole.log(appPath.sync('Safari'));\n//=> '/Applications/Safari.app'\n```\n\n## API\n\n### appPath(appName)\n\nReturns a `Promise<string>` with the path to the app specified in `appName`. Rejects when run on any other operating system than macOS.\n\n### appPath.sync(appName)\n\nReturns the path to the app specified in `appName`. Throws when run on any other operating system than macOS.\n\n#### appName\n\nType: `string`\n\nAn app name or bundle identifier.\n\n## Related\n\n- [app-path-cli](https://github.com/sindresorhus/app-path-cli) - CLI for this module\n","publish_time":1619682376301,"_cnpm_publish_time":1619682376301,"dist-tags":{"latest":"4.0.0"}}