$ luarocks install luasrcdiet
LuaSrcDiet reduces the size of Lua 5.1+ source files by aggressively removing all unnecessary whitespace and comments, optimizing constant tokens, and renaming local variables to shorter names.
This is revival of LuaSrcDiet originally written by Kein-Hong Man.
Versions
Dependencies
lua >= 5.1