{"_id":"app-path","_rev":"4109490","name":"app-path","description":"Get the path to an app (macOS)","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-01-23T00:54:07.000Z","created":"2015-05-18T17:43:01.177Z","4.0.0":"2021-05-03T16:06:33.862Z","3.3.0":"2021-04-29T07:46:16.301Z","3.2.0":"2019-03-31T12:47:16.475Z","3.1.0":"2019-03-20T06:17:35.074Z","3.0.0":"2018-12-01T14:13:52.728Z","2.2.0":"2016-06-14T17:19:50.001Z","2.1.0":"2016-03-17T07:44:32.282Z","2.0.0":"2016-03-08T14:58:18.202Z","1.0.2":"2015-05-19T14:20:42.935Z","1.0.1":"2015-05-18T20:34:09.291Z","1.0.0":"2015-05-18T17:43:01.177Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/app-path.git"},"versions":{"4.0.0":{"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":{"shasum":"86a6940f96d5cbd9e09e510f759b9d73b7a144ca","size":6298,"noattachment":false,"key":"/app-path/-/app-path-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_4.0.0_1620057993739_0.7759989788390074"},"_hasShrinkwrap":false,"publish_time":1620057993862,"_cnpm_publish_time":1620057993862,"_cnpmcore_publish_time":"2021-12-17T13:29:59.084Z"},"3.3.0":{"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":{"shasum":"0342a909db37079c593979c720f99e872475eba3","size":6365,"noattachment":false,"key":"/app-path/-/app-path-3.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-3.3.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_3.3.0_1619682376159_0.5152462895426977"},"_hasShrinkwrap":false,"publish_time":1619682376301,"_cnpm_publish_time":1619682376301,"_cnpmcore_publish_time":"2021-12-17T13:29:59.287Z"},"3.2.0":{"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":{"shasum":"06d426e0c988885264e0aa0a766dfa2723491633","size":4025,"noattachment":false,"key":"/app-path/-/app-path-3.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-3.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_3.2.0_1554036436337_0.2428441500582803"},"_hasShrinkwrap":false,"publish_time":1554036436475,"_cnpm_publish_time":1554036436475,"_cnpmcore_publish_time":"2021-12-17T13:29:59.517Z"},"3.1.0":{"name":"app-path","version":"3.1.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-check","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.3.1","tsd-check":"^0.6.0","xo":"^0.24.0"},"gitHead":"7d2e7e51be3ef287589c5d833cf00a4cc8ab77dd","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path#readme","_id":"app-path@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"553f2ee4bd3c0762ec1345bb7a36cef1040f499f","size":3982,"noattachment":false,"key":"/app-path/-/app-path-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_3.1.0_1553062654939_0.18346333960879657"},"_hasShrinkwrap":false,"publish_time":1553062655074,"_cnpm_publish_time":1553062655074,"_cnpmcore_publish_time":"2021-12-17T13:29:59.741Z"},"3.0.0":{"name":"app-path","version":"3.0.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","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":"^0.25.0","xo":"^0.23.0"},"gitHead":"ba904fd13c0783ee63578f27d8edd3db086595ef","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path#readme","_id":"app-path@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"47d64af579a3e50c7a1240dc6588c47e1590a6e2","size":3608,"noattachment":false,"key":"/app-path/-/app-path-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/app-path_3.0.0_1543673632305_0.39781099393171027"},"_hasShrinkwrap":false,"publish_time":1543673632728,"_cnpm_publish_time":1543673632728,"_cnpmcore_publish_time":"2021-12-17T13:29:59.951Z"},"2.2.0":{"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","size":3727,"noattachment":false,"key":"/app-path/-/app-path-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-2.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/app-path-2.2.0.tgz_1465924787522_0.7098151626996696"},"directories":{},"publish_time":1465924790001,"_hasShrinkwrap":false,"_cnpm_publish_time":1465924790001,"_cnpmcore_publish_time":"2021-12-17T13:30:00.205Z"},"2.1.0":{"name":"app-path","version":"2.1.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":">=4"},"scripts":{"test":"xo && ava","compile":"clang main.m -fmodules -mmacosx-version-min=10.6 -o main"},"files":["index.js","main"],"keywords":["osx","applescript","app","application","path","dir","directory","bundle","location"],"dependencies":{"execa":"^0.2.2"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"61a68d2a32c500990f16015e0ebd217c3f550521","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path","_id":"app-path@2.1.0","_shasum":"f40eaef77b21ef7205ff19036de4f9e0b45e965f","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f40eaef77b21ef7205ff19036de4f9e0b45e965f","size":3818,"noattachment":false,"key":"/app-path/-/app-path-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/app-path-2.1.0.tgz_1458200671601_0.814925764221698"},"directories":{},"publish_time":1458200672282,"_hasShrinkwrap":false,"_cnpm_publish_time":1458200672282,"_cnpmcore_publish_time":"2021-12-17T13:30:00.588Z"},"2.0.0":{"name":"app-path","version":"2.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":">=4"},"scripts":{"test":"xo && ava","compile":"clang main.m -fmodules -mmacosx-version-min=10.6 -o main"},"files":["index.js","main"],"keywords":["osx","applescript","app","application","path","dir","directory","bundle","location"],"dependencies":{"execa":"^0.2.2"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"54a69bd772c7f6519d53352a8d2046e186d6101b","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path","_id":"app-path@2.0.0","_shasum":"3e7af3b024341e714eac08e4d669c0c9cd01fad0","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"3e7af3b024341e714eac08e4d669c0c9cd01fad0","size":3630,"noattachment":false,"key":"/app-path/-/app-path-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/app-path-2.0.0.tgz_1457449095829_0.10426861350424588"},"directories":{},"publish_time":1457449098202,"_hasShrinkwrap":false,"_cnpm_publish_time":1457449098202,"_cnpmcore_publish_time":"2021-12-17T13:30:00.820Z"},"1.0.2":{"name":"app-path","version":"1.0.2","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","compile":"clang main.m -fmodules -mmacosx-version-min=10.6 -o main"},"files":["index.js","main"],"keywords":["osx","applescript","app","application","path"],"devDependencies":{"ava":"0.0.4"},"gitHead":"3e883e8ae5e2332a38278eee65ed95704afb373f","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path","_id":"app-path@1.0.2","_shasum":"155d9634836f86f61abeb5298353100cbfe823dc","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"155d9634836f86f61abeb5298353100cbfe823dc","size":3568,"noattachment":false,"key":"/app-path/-/app-path-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-1.0.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1432045242935,"_hasShrinkwrap":false,"_cnpm_publish_time":1432045242935,"_cnpmcore_publish_time":"2021-12-17T13:30:01.052Z"},"1.0.1":{"name":"app-path","version":"1.0.1","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":"023d8ddffd3cc4bc21680bbef8d2ac0445cd68a6","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"homepage":"https://github.com/sindresorhus/app-path","_id":"app-path@1.0.1","_shasum":"4f5595522114538ff16ed6cab48bcb5d6267ba20","_from":".","_npmVersion":"2.9.1","_nodeVersion":"0.12.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4f5595522114538ff16ed6cab48bcb5d6267ba20","size":1691,"noattachment":false,"key":"/app-path/-/app-path-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1431981249291,"_hasShrinkwrap":false,"_cnpm_publish_time":1431981249291,"_cnpmcore_publish_time":"2021-12-17T13:30:01.239Z"},"1.0.0":{"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","size":1584,"noattachment":false,"key":"/app-path/-/app-path-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/app-path/download/app-path-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1431970981177,"_hasShrinkwrap":false,"_cnpm_publish_time":1431970981177,"_cnpmcore_publish_time":"2021-12-17T13:30:01.449Z"}},"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","_attachments":{},"homepage":"https://github.com/sindresorhus/app-path#readme","bugs":{"url":"https://github.com/sindresorhus/app-path/issues"},"license":"MIT"}