Package Exports
- path-key
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (path-key) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
path-key 
Get the PATH environment variable key cross-platform
It's usually PATH
, but on Windows it can be any casing like Path
...
Install
$ npm install path-key
Usage
const pathKey = require('path-key');
const key = pathKey();
//=> 'PATH'
const PATH = process.env[key];
//=> '/usr/local/bin:/usr/bin:/bin'
API
pathKey([options])
options
Type: Object
env
Type: Object
Default: process.env
Use a custom environment variables object.
platform
Type: string
Default: process.platform
Get the PATH key for a specific platform.
License
MIT © Sindre Sorhus