StyLua

StyLua 2.5.2

A Lua code formatter

  • By JohnnyMorganz
  • Open Source
  • Updated May 16, 2026
Download for Windows

About StyLua

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.

What's new in 2.5.2

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

Full release notes »

Technical details

PublisherJohnnyMorganz
Version2.5.2
Release date2026-05-16
LicenseMPL-2.0
Installer typezip
Architecturex64
Package IDJohnnyMorganz.StyLua

Links & install command

Install StyLua from the command line with Windows Package Manager (winget):

winget install --id=JohnnyMorganz.StyLua -e

formatterhacktoberfestlualuaformatterluaupretty-printerprinterstylua