google_forms/node_modules/npm-run-path/node_modules/path-key/index.js

13 lines
263 B
JavaScript

export default function pathKey(options = {}) {
const {
env = process.env,
platform = process.platform
} = options;
if (platform !== 'win32') {
return 'PATH';
}
return Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';
}