📜  process.argv - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:15.790000             🧑  作者: Mango

代码示例3
process.argv.slice(2).reduce((processArgs, val) => {
 let [key, value] = val.split('=');
 processArgs[key] = value;
 return processArgs;
}, {})