path-key
Advanced tools
Get the PATH environment variable key cross-platform
Weekly downloads
Changelog
https://github.com/sindresorhus/path-key/compare/v3.1.1...v4.0.0
Readme
Get the PATH environment variable key cross-platform
It's usually PATH
but on Windows it can be any casing like Path
...
$ npm install path-key
import pathKey from 'path-key';
const key = pathKey();
//=> 'PATH'
const PATH = process.env[key];
//=> '/usr/local/bin:/usr/bin:/bin'
Type: object
Type: object
Default: process.env
Use a custom environment variables object.
Type: string
Default: process.platform
Get the PATH key for a specific platform.
Get the PATH environment variable key cross-platform
The npm package path-key receives a total of 50,886,563 weekly downloads. As such, path-key popularity was classified as popular.
We found that path-key demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.