You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 281B

12345678910111213
  1. 'use strict';
  2. module.exports = opts => {
  3. opts = opts || {};
  4. const env = opts.env || process.env;
  5. const platform = opts.platform || process.platform;
  6. if (platform !== 'win32') {
  7. return 'PATH';
  8. }
  9. return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
  10. };