env-path-key
v1.1.11
Published
Determines the path key
Readme
env-path-key
Find the environment variable name used for PATH on the current platform.
Install
npm install env-path-keyUse
const envPathKey = require('env-path-key');
console.log(envPathKey()); // 'PATH' on POSIX, usually 'Path' on WindowsPass platform and env when inspecting another environment without changing the process environment:
envPathKey({ platform: 'win32', env: { pAtH: 'value' } }); // 'pAtH'