{"_id":"path-key","_rev":"22704","name":"path-key","description":"Get the PATH environment variable key cross-platform","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2021-06-03T10:01:51.000Z","created":"2015-12-28T18:36:51.108Z","4.0.0":"2021-04-09T12:04:51.822Z","3.1.1":"2019-11-22T16:47:18.153Z","3.1.0":"2019-04-05T06:52:44.335Z","3.0.0":"2019-03-10T14:13:28.802Z","2.0.1":"2016-09-26T10:55:53.120Z","2.0.0":"2016-09-25T06:27:06.037Z","1.0.0":"2015-12-28T18:36:51.108Z"},"users":{"faraoman":true,"zuojiang":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.git"},"versions":{"4.0.0":{"name":"path-key","version":"4.0.0","description":"Get the PATH environment variable key cross-platform","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.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"},"keywords":["path","key","environment","env","variable","get","cross-platform","windows"],"devDependencies":{"@types/node":"^14.14.37","ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.38.2"},"gitHead":"d5ad08865acad539d2d64655f14987a7ad764451","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"homepage":"https://github.com/sindresorhus/path-key#readme","_id":"path-key@4.0.0","_nodeVersion":"15.12.0","_npmVersion":"6.14.10","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"295588dc3aee64154f877adb9d780b81c554bf18","size":2069,"noattachment":false,"key":"/path-key/-/path-key-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-key/download/path-key-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-key_4.0.0_1617969891636_0.7475083234799604"},"_hasShrinkwrap":false,"publish_time":1617969891822,"_cnpm_publish_time":1617969891822},"3.1.1":{"name":"path-key","version":"3.1.1","description":"Get the PATH environment variable key cross-platform","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","key","environment","env","variable","var","get","cross-platform","windows"],"devDependencies":{"@types/node":"^11.13.0","ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"caea269db3a5eb0c09c793f4be5435312971d2fa","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"homepage":"https://github.com/sindresorhus/path-key#readme","_id":"path-key@3.1.1","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"581f6ade658cbba65a0d3380de7753295054f375","size":2258,"noattachment":false,"key":"/path-key/-/path-key-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-key/download/path-key-3.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-key_3.1.1_1574441238024_0.7107545641938868"},"_hasShrinkwrap":false,"publish_time":1574441238153,"_cnpm_publish_time":1574441238153},"3.1.0":{"name":"path-key","version":"3.1.0","description":"Get the PATH environment variable key cross-platform","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["path","key","environment","env","variable","var","get","cross-platform","windows"],"devDependencies":{"@types/node":"^11.13.0","ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"cc5e5ab75428c639ed64762e182a55fbfb07db1c","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"homepage":"https://github.com/sindresorhus/path-key#readme","_id":"path-key@3.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"99a10d870a803bdd5ee6f0470e58dfcd2f9a54d3","size":2038,"noattachment":false,"key":"/path-key/-/path-key-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-key/download/path-key-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-key_3.1.0_1554447164202_0.31022058392905505"},"_hasShrinkwrap":false,"publish_time":1554447164335,"_cnpm_publish_time":1554447164335},"3.0.0":{"name":"path-key","version":"3.0.0","description":"Get the PATH environment variable key cross-platform","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd-check"},"keywords":["path","key","environment","env","variable","var","get","cross-platform","windows"],"devDependencies":{"@types/node":"^11.11.0","ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"5d21e7064d248a7fc928da67d78003a855145641","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"homepage":"https://github.com/sindresorhus/path-key#readme","_id":"path-key@3.0.0","_nodeVersion":"10.15.1","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"4c459253329ac9abfd22a456a18a49bb3394f271","size":1912,"noattachment":false,"key":"/path-key/-/path-key-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-key/download/path-key-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-key_3.0.0_1552227208700_0.9010846848491241"},"_hasShrinkwrap":false,"publish_time":1552227208802,"_cnpm_publish_time":1552227208802},"2.0.1":{"name":"path-key","version":"2.0.1","description":"Get the PATH environment variable key cross-platform","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["path","key","environment","env","variable","var","get","cross-platform","windows"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"d60207f9ab9dc9e60d49c87faacf415a4946287c","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"homepage":"https://github.com/sindresorhus/path-key#readme","_id":"path-key@2.0.1","_shasum":"411cadb574c5a140d3a4b1910d40d80cc9f40b40","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"411cadb574c5a140d3a4b1910d40d80cc9f40b40","size":1746,"noattachment":false,"key":"/path-key/-/path-key-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-key/download/path-key-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/path-key-2.0.1.tgz_1474887352898_0.8162120468914509"},"directories":{},"publish_time":1474887353120,"_cnpm_publish_time":1474887353120,"_hasShrinkwrap":false},"2.0.0":{"name":"path-key","version":"2.0.0","description":"Get the PATH environment variable key cross-platform","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["path","key","environment","env","variable","var","get","cross-platform","windows"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"c20998aada28a193bf245fd3be5f066c78690a4a","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"homepage":"https://github.com/sindresorhus/path-key#readme","_id":"path-key@2.0.0","_shasum":"a07e1d3d81ee9a21e4fc70d0fd765f3022e6f70c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a07e1d3d81ee9a21e4fc70d0fd765f3022e6f70c","size":1748,"noattachment":false,"key":"/path-key/-/path-key-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-key/download/path-key-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/path-key-2.0.0.tgz_1474784823704_0.3132385080680251"},"directories":{},"publish_time":1474784826037,"_cnpm_publish_time":1474784826037,"_hasShrinkwrap":false},"1.0.0":{"name":"path-key","version":"1.0.0","description":"Get the PATH environment variable key cross-platform","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/path-key"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["path","key","environment","env","variable","var","get","cross-platform","windows"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"7f9703b3ae62da971bae635d561b1a6b80102cc1","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"homepage":"https://github.com/sindresorhus/path-key","_id":"path-key@1.0.0","_shasum":"5d53d578019646c0d68800db4e146e6bdc2ac7af","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5d53d578019646c0d68800db4e146e6bdc2ac7af","size":1744,"noattachment":false,"key":"/path-key/-/path-key-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/path-key/download/path-key-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1451327811108,"_cnpm_publish_time":1451327811108,"_hasShrinkwrap":false}},"readme":"# path-key\n\n> Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform\n\nIt's usually `PATH` but on Windows it can be any casing like `Path`...\n\n## Install\n\n```\n$ npm install path-key\n```\n\n## Usage\n\n```js\nimport pathKey from 'path-key';\n\nconst key = pathKey();\n//=> 'PATH'\n\nconst PATH = process.env[key];\n//=> '/usr/local/bin:/usr/bin:/bin'\n```\n\n## API\n\n### pathKey(options?)\n\n#### options\n\nType: `object`\n\n##### env\n\nType: `object`\\\nDefault: [`process.env`](https://nodejs.org/api/process.html#process_process_env)\n\nUse a custom environment variables object.\n\n#### platform\n\nType: `string`\\\nDefault: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform)\n\nGet the PATH key for a specific platform.\n\n---\n\n<div align=\"center\">\n\t<b>\n\t\t<a href=\"https://tidelift.com/subscription/pkg/npm-path-key?utm_source=npm-path-key&utm_medium=referral&utm_campaign=readme\">Get professional support for this package with a Tidelift subscription</a>\n\t</b>\n\t<br>\n\t<sub>\n\t\tTidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.\n\t</sub>\n</div>\n","_attachments":{},"homepage":"https://github.com/sindresorhus/path-key#readme","bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"license":"MIT"}