I think what you are looking for is this obfuscation software. Just as you requested, it can generate shorter variable names and has a high compression rate. It runs on a server (JS obfuscation assistant), known as JS Confuse Helper, and supports command-line invocation. Official website: https://acoolcode.com