node script command line arguments special char package.json script脚本参数里有特殊字符处理

118 阅读1分钟

问题:

"node XXX.js && ts-node XXX --XXXX=XX^^^&XX

& 特殊字符会影响获取参数的值 通过^^^ 特殊处理,其他特殊字符同理

superuser.com/questions/5…