source: trip-planner-front/node_modules/path-key/index.js@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 281 bytes
RevLine 
[6a3a178]1'use strict';
2module.exports = opts => {
3 opts = opts || {};
4
5 const env = opts.env || process.env;
6 const platform = opts.platform || process.platform;
7
8 if (platform !== 'win32') {
9 return 'PATH';
10 }
11
12 return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
13};
Note: See TracBrowser for help on using the repository browser.