pkg.soopen package index

brew / 排名 1267

使用 Homebrew, apk, MacPorts, Nix, pacman, scoop, winget, zypper 安装 stylua

查看 stylua 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install stylua

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install stylua

MacPorts ports tree · lua/stylua/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add stylua

Alpine Linux edge package indexes · stylua · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#stylua

nixpkgs package indexes · pkgs/by-name/st/stylua/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S stylua

Arch Linux sync databases · stylua · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install StyLua

openSUSE Tumbleweed package metadata · StyLua · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/stylua

Scoop official bucket manifest trees · bucket/stylua.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id JohnnyMorganz.StyLua -e

Windows Package Manager source index · JohnnyMorganz.StyLua · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Opinionated Lua code formatter

命令和别名

  • stylua

历史

项目历史与用法

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.

时间线

  • 2020-12-30: StyLua 0.1.0 released with CLI stdin support.
  • 2024-11-17: StyLua 2.0.0 changed release artifact names and added runtime syntax configuration.
  • 2025-09-14: StyLua 2.2.0 added language server mode.
  • 2026-05-16: StyLua 2.5.0 changed npm binary packaging to platform-specific optional packages.

Related projects

  • The README names full-moon as the parser foundation and Prettier as an inspiration, while also tying StyLua to Luau, Roblox style conventions, CfxLua/FiveM, pre-commit, GitHub Actions, Docker, npm, Cargo, Aftman, VS Code, Neovim, Sublime, and Zed.

安全态势

尚未找到受保护工具覆盖

没有找到 stylua 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
stylua.toml.stylua.toml$XDG_CONFIG_HOME/stylua~/.config/stylua
Windows
stylua.toml.stylua.toml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
styluacli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本2.5.2
管理器更新时间2026-05-16
本地数据OK
上游当前
检测到的最新版本v2.5.2

https://github.com/JohnnyMorganz/StyLua

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:stylua
版本2.5.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/stylua
主页https://github.com/JohnnyMorganz/StyLua
仓库https://github.com/JohnnyMorganz/StyLua
许可证MPL-2.0
源码归档https://github.com/JohnnyMorganz/StyLua/archive/refs/tags/v2.5.2.tar.gz
最后更新2026-05-16T18:32:04Z
Pulseupdated
构建依赖rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namestylua
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

stylua

nix profile install nixpkgs#stylua
  • normalized package name match
  • 匹配方式:Stylua
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/st/stylua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

stylua 2.5.2-r0

Opinionated Lua code formatter

https://github.com/JohnnyMorganz/StyLua

sudo apk add stylua
  • License: MPL-2.0
  • Architecture: x86_64
  • Source Package: stylua
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Stylua
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: stylua from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

stylua 2.5.2-1

Deterministic code formatter for Lua

https://github.com/JohnnyMorganz/StyLua

sudo pacman -S stylua
  • License: MPL-2.0
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Stylua
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: stylua from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

StyLua 2.0.2-1.7

Opinionated Lua code formatter

https://github.com/JohnnyMorganz/StyLua

sudo zypper install StyLua
  • License: (Apache-2.0 OR MIT) AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (MIT OR Unlicense) AND Apache-2.0 AND MIT AND MPL-2.0 AND
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: StyLua
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Stylua
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: StyLua from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

stylua

sudo port install stylua
  • normalized package name match
  • 匹配方式:Stylua
MacPorts ports tree · api.github.com · MacPorts ports tree: lua/stylua/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/stylua

scoop install main/stylua
  • normalized package name match
  • 匹配方式:Stylua
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/stylua.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

JohnnyMorganz.StyLua

winget install --id JohnnyMorganz.StyLua -e
  • normalized package name match
  • 匹配方式:Stylua
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: JohnnyMorganz.StyLua from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation