Files
SnowLuma/.pnpm-store/v11/files/5b/d337c8f3eb7d60f976e78eccb320a26ab57b2b018f295fd887e92785970c314a69a69ec81541f01e4eeaa60fd4f05bfc4632aa734c9546ef408db604c72207
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

17 lines
415 B
Plaintext

'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;