Urara-Blog/node_modules/.pnpm-store/v3/files/5b/d337c8f3eb7d60f976e78eccb320a26ab57b2b018f295fd887e92785970c314a69a69ec81541f01e4eeaa60fd4f05bfc4632aa734c9546ef408db604c72207
2022-08-14 01:14:53 +08:00

16 lines
415 B
Text

'use strict';
const pathKey = (options = {}) => {
const environment = options.env || process.env;
const platform = options.platform || process.platform;
if (platform !== 'win32') {
return 'PATH';
}
return Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';
};
module.exports = pathKey;
// TODO: Remove this for the next major release
module.exports.default = pathKey;