Urara-Blog/node_modules/.pnpm-store/v3/files/86/36ec83d7505f123395270b75efd07e10ce8af39975e53af6524d55bee96c4e7fb8c46f182018becd2a9556551ba8f1c49cb26431d3087e7f675b3799a789cd
2022-08-14 01:14:53 +08:00

13 lines
281 B
Text

'use strict';
module.exports = opts => {
opts = opts || {};
const env = opts.env || process.env;
const platform = opts.platform || process.platform;
if (platform !== 'win32') {
return 'PATH';
}
return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
};