{"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","tarball":"http://registry-npm.ywwl.com/path-key/download/path-key-2.0.0.tgz","integrity":"sha512-0ZKacolv78i1s63zunrC+Xdhbav6+B6aHhgCDcXCwGu4KN6jW8wD9SeLKN8G8EEgACsVTjTESQKNK6rGQ4HknA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBHV76WmAV0orqHhSw0tE9fd826mKNdpmgmjaCvMo2mBAiEAtGQdify1uNB+/w+C5po1F16EDs557A/IvvGIok//7Oc="}],"size":1748,"noattachment":false,"key":"/path-key/-/path-key-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/path-key-2.0.0.tgz_1474784823704_0.3132385080680251"},"directories":{},"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","publish_time":1474784826037,"_cnpm_publish_time":1474784826037,"dist-tags":{"latest":"4.0.0"}}