Skip to content

Gmod Lua minification / unminification CLI tool written in Lua

License

Notifications You must be signed in to change notification settings

xUnkNx/glua-minify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 

Repository files navigation

This is UnkN's fork of https://github.com/n1tehawk/lua-minify and https://github.com/stravant/lua-minify.

Just added support for Garry's Mod lua syntax: continue (go to next 'for' condition), && (and), || (or), != (not equal), /* */ (CPP comment) Also disabled renaming globals, because its useless for gmod i think.


A Lua tool for minifying and reverse engineering minified GMod Lua code

Usage:

lua minify.lua minify INPUTFILE > OUTPUTFILE 

lua minify.lua unminify INPUTFILE > OUTPUTFILE

The purpose of the unminifier is to reverse engineer minified code. It both beautifies the code and renames the variables to descriptive names like "L_42_arg2" which can be easily find-replaced while trying to reverse engineer minified code.

About

Gmod Lua minification / unminification CLI tool written in Lua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%