{"name":"app-path","version":"4.0.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"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"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":"^5.0.0"},"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"0e776d4e132676976b4a64e09b5e5a4c6e99fcba","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path#readme","_id":"app-path@4.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-mgBO9PZJ3MpbKbwFTljTi36ZKBvG5X/fkVR1F85ANsVcVllEb+C0LGNdJfGUm84GpC4xxgN6HFkmkMU8VEO4mA==","shasum":"86a6940f96d5cbd9e09e510f759b9d73b7a144ca","tarball":"http://registry-npm.ywwl.com/app-path/download/app-path-4.0.0.tgz","fileCount":6,"unpackedSize":121013,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgkB+KCRA9TVsSAnZWagAAersP/ilNqui95NOUwRi+wZ4w\nI9tvud2KGZ3qR6KiUj60Yx3lJnG5Yv0Y+MKYwGHiDTPSZ2nRiZMqTWmhuH9B\nhdgYMmphL2L4Gwy1JOutoGiMlOyKdip6TmePy70b5ntd5i9fRlMW9YSVKKrC\nsAYba/uId+nftAvQytxIIFgKlMaRSoSSTHngj3yRMZm5pv5j61uFSx0gJBUn\n+uV0tnI+ZNF4DzG1pvJauQfNBb2bb5L2lKkay8n6qUUrmFcLBGel4ek9xSpM\nAd+N2WnY2918G0A7pYZAdQnsAh8NbE/5Qrik49SKOkgxqCQ5YjVXvptiH1bg\nrENTgyH+dPv3MC4z9df4cAED1mhW9QZJrUy+sPZmsFZYAxay/esni3aaLBF1\n1a0DQFusDhp0r9FuGcgIfdfM3uxYA7/uTQlUtChcTnK4iTNCSbHUh5YraoMA\nrulqx3YSsfWhihCXT27ZE4Q0chcvaXMo+0yUFAYxmnviRr0TmMbrVwYe9N/U\ndkZI77TIXixHW2e/Aq12BsZpbq34/N0LicR/BKtBsRvwZoel1Sce/zVjuzsZ\ngU8PbOZ188DOLnC7qvYNkESyNsjVssAHpaBvJMPV9/7eIzcERnOa0NgRi/iY\n+6ZOkPTzrS/eFwHbRvgoAvngt6TxfvD7iIAAEUokwjgtYPTNeuyDZ19Znqiy\nPDMU\r\n=EyuM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTDkU4l7aRWZr1G8I0TUARxmJQKcNRCE3Y+IHnYEJo2QIhAP0uc2dG5WoPerhVP2TAFFYCOPvPAU/w5Tc1EvAX+t6a"}],"size":6298,"noattachment":false,"key":"/app-path/-/app-path-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_4.0.0_1620057993739_0.7759989788390074"},"_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":1620057993862,"_cnpm_publish_time":1620057993862,"dist-tags":{"latest":"4.0.0"}}