{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["path","key","environment","env","variable","var","get","cross-platform","windows"],"dist-tags":{"latest":"2.0.1"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Get the PATH environment variable key cross-platform","readme":"# path-key [![Build Status](https://travis-ci.org/sindresorhus/path-key.svg?branch=master)](https://travis-ci.org/sindresorhus/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\n## Install\n\n```\n$ npm install --save path-key\n```\n\n\n## Usage\n\n```js\nconst pathKey = require('path-key');\n\nconst key = pathKey();\n//=> 'PATH'\n\nconst PATH = process.env[key];\n//=> '/usr/local/bin:/usr/bin:/bin'\n```\n\n\n## API\n\n### pathKey([options])\n\n#### options\n\n##### env\n\nType: `Object`<br>\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`<br>\nDefault: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform)\n\nGet the PATH key for a specific platform.\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/path-key.git"},"bugs":{"url":"https://github.com/sindresorhus/path-key/issues"},"license":"MIT","versions":{"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","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/path-key/-/path-key-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"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","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/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":{}},"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","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/path-key/-/path-key-2.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/path-key-2.0.1.tgz_1474887352898_0.8162120468914509"},"directories":{}}},"name":"path-key","time":{"modified":"2016-09-26T10:55:53.120Z","created":"2015-12-28T18:36:51.108Z","1.0.0":"2015-12-28T18:36:51.108Z","2.0.0":"2016-09-25T06:27:06.037Z","2.0.1":"2016-09-26T10:55:53.120Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/path-key#readme"}