macOS
brew install stylualocal Homebrew formula metadata
sudo port install styluaMacPorts ports tree · lua/stylua/Portfile · 来源: api.github.com
安装
brew install stylualocal Homebrew formula metadata
sudo port install styluaMacPorts ports tree · lua/stylua/Portfile · 来源: api.github.com
sudo apk add styluaAlpine Linux edge package indexes · stylua · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#styluanixpkgs package indexes · pkgs/by-name/st/stylua/package.nix · 来源: api.github.com
sudo pacman -S styluaArch Linux sync databases · stylua · 来源: geo.mirror.pkgbuild.com
sudo zypper install StyLuaopenSUSE Tumbleweed package metadata · StyLua · 来源: download.opensuse.org
scoop install main/styluaScoop official bucket manifest trees · bucket/stylua.json · 来源: api.github.com
winget install --id JohnnyMorganz.StyLua -eWindows Package Manager source index · JohnnyMorganz.StyLua · 来源: cdn.winget.microsoft.com
概览
Opinionated Lua code formatter
历史
StyLua is a deterministic Lua-family code formatter. Its README says it formats Lua 5.1 through 5.4, LuaJIT, Luau, and CfxLua/FiveM Lua by parsing code and printing it back out with a consistent style inspired by Prettier.
The official changelog begins with version 0.1.0 on 2020-12-30, adding CLI stdin support and formatting behavior for expanded tables. The project later grew from a Lua formatter into a multi-runtime tool with runtime syntax selection, language-server mode, prebuilt binaries, npm wrappers, Docker images, pre-commit hooks, and editor integrations.
The README documents installation through GitHub Releases, Cargo/crates.io, GitHub Actions, pre-commit, npm, Docker, Homebrew, pip/uv from Git, VS Code, Aftman, and community package repositories. The input package-manager facts also show packaging across APK, Homebrew, MacPorts, Nix, Pacman, Scoop, and zypper.
The usual workflow is `stylua` over files or directories, with `--check` in CI, stdin support for editors, `.styluaignore` for filtering, and `stylua.toml` or `.stylua.toml` for project configuration. The README recommends a project-root `.stylua.toml` so teams share the same formatting behavior.
StyLua is interesting to package nerds because it crosses ecosystems: Rust crate, standalone GitHub binary, npm binary wrapper, Docker image, Homebrew formula, pre-commit hook, and editor formatter. Its 2.x history includes packaging details such as platform-specific npm optional packages and changed release artifact names, both of which directly affect downstream packaging.
安全态势
没有找到 stylua 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
stylua.toml.stylua.toml$XDG_CONFIG_HOME/stylua~/.config/styluastylua.toml.stylua.toml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
stylua | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:stylua |
|---|---|
| 版本 | 2.5.2 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/JohnnyMorganz/StyLua |
| 仓库 | https://github.com/JohnnyMorganz/StyLua |
| 最后更新 | 2026-05-16T18:32:04Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
stylua
nix profile install nixpkgs#styluastylua 2.5.2-r0
Opinionated Lua code formatter
https://github.com/JohnnyMorganz/StyLua
sudo apk add styluastylua 2.5.2-1
Deterministic code formatter for Lua
https://github.com/JohnnyMorganz/StyLua
sudo pacman -S styluaStyLua 2.0.2-1.7
Opinionated Lua code formatter
https://github.com/JohnnyMorganz/StyLua
sudo zypper install StyLuastylua
sudo port install styluamain/stylua
scoop install main/styluaJohnnyMorganz.StyLua
winget install --id JohnnyMorganz.StyLua -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.