{"name":"app-path","version":"1.0.0","description":"Get the path to an app (OS X)","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/app-path"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["osx","applescript","app","application","path"],"dependencies":{"run-applescript":"^1.0.1"},"devDependencies":{"ava":"0.0.4"},"gitHead":"c6724750996d74b459344690492269c0cfc49a1d","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path","_id":"app-path@1.0.0","_shasum":"33974ee498b13b5d284aa488c2d40aed839e011a","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"33974ee498b13b5d284aa488c2d40aed839e011a","tarball":"http://registry-npm.ywwl.com/app-path/download/app-path-1.0.0.tgz","integrity":"sha512-bzz531lLVc8yCE2MywhfEr1uTZvsCBFOPLQgWt12i9eYCD/Zh8dD42X3FEaO5iFQJnagp4+TgddPwNSqQj4Ewg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICkaXgeaJ/UV0Kvv0oYADbke0n0/dgPTabdL/oBZJnpPAiAk3iA1Oakh/kgttiA4qSiAsy9pp0Yc/SBVER0IGl5hzg=="}],"size":1584,"noattachment":false,"key":"/app-path/-/app-path-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"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":1431970981177,"_cnpm_publish_time":1431970981177,"dist-tags":{"latest":"4.0.0"}}