Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
281 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | 'use strict';
|
---|
| 2 | module.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.