✏️ 正在编辑: index.js
路径:
/opt/alt/alt-nodejs22/root/usr/lib/node_modules/npm/node_modules.bundled/path-key/index.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
'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;
💾 保存文件
← 返回文件管理器