{"name":"app-path","version":"3.2.0","description":"Get the path to an app (macOS)","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/app-path.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd","compile":"clang main.m -fmodules -mmacosx-version-min=10.6 -o main"},"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":"5eb8bd7402f86440b6690ee0b109117c35743eec","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path#readme","_id":"app-path@3.2.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-PQPaKXi64FZuofJkrtaO3I5RZESm9Yjv7tkeJaDz4EZMeBBfGtr5MyQ3m5AC7F0HVrISBLatPxAAAgvbe418fQ==","shasum":"06d426e0c988885264e0aa0a766dfa2723491633","tarball":"http://registry-npm.ywwl.com/app-path/download/app-path-3.2.0.tgz","fileCount":6,"unpackedSize":13977,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoLbUCRA9TVsSAnZWagAAIigQAIp2SOSRoLbRmCb9hfX6\n4Qp+WskXztJtwYJtAeHPlaIrsQm1HhBBkopND+pHD09/EOLZtNgm2QQrUyKG\nauX8g9GaJZstuvER8aH4ZsV6ZKRs/+kG2dCncXT9JSmSQJDC5JhgRY5KTQcj\n5xAti9HrBFimChK8xetgdfZuvj2PDxtc2gJDEOt1jP3YUSrDjOuNiBmKJub1\n1k8LCYIJ0S+FLUMbSuscGJ9Xy2gNedMaZmNcS+yOj1i3iGTVQkYXrfZoQPvR\nShpAdmfrsAB88VI/qpFRGgGK2U5LXzhWvhFShVoC8GlZ9N6iFtr8+L7aYO8B\n5dEYl2iQ8o0PFQ8B61tDLqT9+YoVbQZZBB0rZI2mr1fo/gZog64QfYAknLN8\nm3M+RXNfDvckUB1XcZLdsqmg+k8wAkGj2cK8HM/uRUEK2vyid2W4QVXQ50AY\nUQz2g4yGha32KjpIVbAaizEvKJnsxrWXh+FpoJ4Vzdzr29dx0JyHL6DhkLLZ\ntfhIDvNGW2/EXj+VjfAiQV4vtOZf9ioUuxgHbNftw2gKPQV68ZMsO+Gj0IWR\nqzx3IZvVIDMlGMHD7A2ekmuicrZB6Gnh0zHHl3bTIFRAlbrsHAmATnL52glF\nyrHJk/fHI/9H3jzq7cLz23I0PfyHeZdUDs31BUoQyGXzZDlrayXsKAMEddtu\n/HTO\r\n=+bPh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDFp1UNXrXQ7dX0jaDf/pJpFSu8DhJsD989vRqONQRfqAIhAI/aNEACyZ+YnESrWxMX5rc8Q1yDXmtdL+B+9LQjUEyW"}],"size":4025,"noattachment":false,"key":"/app-path/-/app-path-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_3.2.0_1554036436337_0.2428441500582803"},"_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":1554036436475,"_cnpm_publish_time":1554036436475,"dist-tags":{"latest":"4.0.0"}}