nextlua is a Luau beautifier and minifier for formatting and compressing Luau source code. Version 3.1.0 is the current stable release. It runs on Node.js and provides CLI and programmatic APIs for code formatting. Differentiators include support for Luau-specific syntax and customizable formatting options.
npm install nextluaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import beautify and minify functions, format code with indentation, and minify with options.
Use ESM imports or downgrade to v2.x.
Replace indent with indent_width, and tabs with use_tabs.
Pass { rename_variables: false } to preserve original names.Switch to dynamic import() or use ESM imports.
Use { beautify } named export.No dependency data recorded yet.