A beautifier for Luau written in C++
In order to build, you need to have Lune installed.
I personally recommend installing through cargo if you already have rust installed.
$ lune run build silent
$ lune run build silent wasm
Usage: ./luau-beautifier [options] [file]
options:
--minify: switches output mode from beautify to minify
--nosolve: doesn't solve simple expressions
--ignoretypes: omits Luau type expressions, keeping the important parts
--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.
You can use luau_beautifier without compiling with this replit.
- The Luau version used is 0.630
- Currently there is MINIMAL typing support