StyLua

JohnnyMorganz·JohnnyMorganz.StyLua

A Lua code formatter

A deterministic code formatter for Lua 5.1, 5.2, 5.3, 5.4, LuaJIT, Luau and CfxLua/FiveM Lua, built using full-moon. StyLua is inspired by the likes of prettier, it parses your Lua codebase, and prints it back out from scratch, enforcing a consistent code style. StyLua mainly follows the Roblox Lua Style Guide, with a few deviations.

winget install --id JohnnyMorganz.StyLua --exact --source winget

Latest 2.5.2·May 16, 2026

Release Notes

There were no code changes in this release, it was just a fix to npm publishing, see https://github.com/JohnnyMorganz/StyLua/releases/tag/v2.5.0 for the main updates

[2.5.2] - 2026-05-16

Fixed

  • Fixed npm publishing failing provenance validation due to normalization of repository URL

Installer type: zip

x64—E77D0EA1226B8B389B43F702240091249A96EEA25857281F90EA24D0EB9EB969

Details

Homepage
https://github.com/JohnnyMorganz/StyLua
License
MPL-2.0
Publisher
JohnnyMorganz
Support
https://github.com/JohnnyMorganz/StyLua/issues

Tags

formatterhacktoberfestlualuaformatterluaupretty-printerprinterstylua