A beautifier for Luau written in C++
You can use luau_beautifier without compiling with this replit.
$ make -s
$ make wasm
Usage: ./luau-beautifier [options] [file]
options:
--minify: switches output mode from beautify to minify
--nosolve: doesn't solve simple expressions
--replaceifelseexpr: tries to replace if else expressions with statements
--extra1: tries to replace certain statements / expression using potentially dangerous methods
If there are errors parsing (both CLI options or the input code), you will see those in stderr.
Otherwise, the beautified code will appear in stdout.
- The Luau version used is 0.630
- Currently there is no MINIMAL support