{"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":{"integrity":"sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==","shasum":"295588dc3aee64154f877adb9d780b81c554bf18","tarball":"http://registry-npm.ywwl.com/path-key/download/path-key-4.0.0.tgz","fileCount":5,"unpackedSize":4069,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgcELkCRA9TVsSAnZWagAAy3gQAJ2VsZWgJZZQxBORfE1W\nYdWz8zTgZBp+ZWFa5frmfzVH4w4TiA1kns8EoSn+OFw4k4StZwkcfverCiXw\nSin2/so9+zIiSriM1di8lGs6h35YfOZLTW6lQEgm73JdfLTtGotPujV8g8l5\njB01BaBNUBxfvLb5fxZV6rauvHPG+tafhomm8m55aCA4q+xG27Ufol+1S6G1\nD47Bg3vFEvs/3UBS3CWYbydRYlkED773c2az4unrOVflYX0hPNaxVR5i23fb\n1JpgLi9h0t8+eMRiAe7CYsaSe+yH4BXl/Ld2fZVWr01BjNhcaIsaCHB+R/Ws\n1EWA222EPFxIQEofS4vQ2r07ikyirJXdPf9iCZaKpBjEvHGeEZR2oKQvadW8\nRS74BdIFTs4L47mWZ4V+nwOb98zJo9dlUIclpNuEkWb3q9TrtQ62jkcvgDX8\nF2msHMkUStD/l0vePQVQgHVM92xSXRNsJrWxiMZClLLZzYAX8gxqpIOxFUAT\nAT1LMfk0xofNZqsOVWrgW606aVlBNhZGr+J9dg58HuZXmnfEx/mBcsB0zwPM\nc21SSnsmUDnjHuX8PfJQzaat9sitxnQvNkjCYxecXgTh992BirzLju0gMc5l\nWIY0vEhBOcMDwyXcKvUNS+pEBWNt5xnalmBkD9CVZsdnRJjz+PYJIN2AwWVZ\n8OJJ\r\n=H3Kp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDweU+QrdjKgSpk78xRNP5Yfffb0RWhBJklnQJqATjPUAIhAOJWyOkUtdp+JMQdY8ZMD6v//I2JnKvIJrQ8s6/puTrJ"}],"size":2069,"noattachment":false,"key":"/path-key/-/path-key-4.0.0.tgz"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/path-key_4.0.0_1617969891636_0.7475083234799604"},"_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","publish_time":1617969891822,"_cnpm_publish_time":1617969891822,"dist-tags":{"latest":"4.0.0"}}