path-key
Advanced tools
Weekly downloads
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.
FAQs
Get the PATH environment variable key cross-platform
The npm package path-key receives a total of 53,178,791 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 because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.