{"name":"app-path","version":"2.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":">=4"},"scripts":{"test":"xo && ava","compile":"clang main.m -fmodules -mmacosx-version-min=10.6 -o main"},"files":["index.js","main"],"keywords":["macos","osx","applescript","app","application","path","dir","directory","bundle","location"],"dependencies":{"execa":"^0.4.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"ae2c2261e7898669667699f1572a7a75e08566e1","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path#readme","_id":"app-path@2.2.0","_shasum":"2af5c2b544a40e15fc1ac55548314397460845d0","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2af5c2b544a40e15fc1ac55548314397460845d0","tarball":"http://registry-npm.ywwl.com/app-path/download/app-path-2.2.0.tgz","integrity":"sha512-8Nayxm2u6rVd+8OuVV8mwzSVB+EMDGCC8SV82YIOuFutFtHFCnXY52fhPEPT61FmPLpzd4HctsofSPp3UQonMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrHwYoe5qoZqGD83Ho4jvQRgY3mFVXT0d2zLmlDPmgKgIhAL0/RgF0jHgNXEbWmPwa5qlCG3VoHlKQkYB/JFpWVEb8"}],"size":3727,"noattachment":false,"key":"/app-path/-/app-path-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/app-path-2.2.0.tgz_1465924787522_0.7098151626996696"},"directories":{},"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":1465924790001,"_cnpm_publish_time":1465924790001,"dist-tags":{"latest":"4.0.0"}}