frontend/.pnpm-store/v3/files/2b/7d4cdc66cc7ef5423ae994e8044bd5774d2c289c5494d0a25830cde781c8aa46d770f96c9d713bbe5f3412cc034a701708647175d493eade2f2c7f77dfcd2a

13 lines
263 B
Plaintext

export default function pathKey(options = {}) {
const {
env = process.env,
platform = process.platform
} = options;
if (platform !== 'win32') {
return 'PATH';
}
return Object.keys(env).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';
}