https://blog.csdn.net/foupwang/article/details/103306332
npm install javascript-obfuscator -g
javascript-obfuscator config.js --config HunxiaoConfig.json --output config1.js
HunxiaoConfig.json
{ "compact": true, "controlFlowFlattening": true, "controlFlowFlatteningThreshold": 1, "deadCodeInjection": true, "deadCodeInjectionThreshold": 1, "disableConsoleOutput": true, "identifierNamesGenerator": "hexadecimal", "log": false, "renameGlobals": false, "rotateStringArray": true, "selfDefending": true, "stringArray": true, "stringArrayEncoding": ["base64"], "stringArrayThreshold": 1, "unicodeEscapeSequence": false }