pkg.soopen package index

brew / 排名 5250

使用 Homebrew, Nix 安装 keep-sorted

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install keep-sorted

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#keep-sorted

nixpkgs package indexes · pkgs/by-name/ke/keep-sorted/package.nix · 来源: api.github.com

概览

软件包摘要

Language-agnostic formatter that sorts selected lines

命令和别名

  • keep-sorted

历史

项目历史与用法

keep-sorted is Google's language-agnostic formatter for sorting marked blocks of lines inside larger files. Instead of trying to parse a whole language, it asks maintainers to mark regions with `keep-sorted start` and `keep-sorted end`, then sorts just those regions.

项目历史

The GitHub repository was created on 2023-02-23. The README presents the tool as a general formatter for sorted blocks and documents installation through `go install` and pre-commit integration. Public GitHub releases began with the 0.1.x line in January 2024, followed by rapid feature growth around nested blocks, numeric sorting, YAML-style option lists, regex sorting, release binaries, and skip/group options.

采用历史

Adoption is strongest in repositories that want deterministic ordering for generated-looking lists without adopting a language-specific formatter. The pre-commit hook documented in the README is the main adoption path: projects can enforce sorted blocks in review and CI while keeping the tool independent of file type.

使用方式

Users wrap a section of code, configuration, documentation, or data with keep-sorted markers and run `keep-sorted` over files or stdin. Options on the marker control grouping, block parsing, case sensitivity, duplicate removal, descending order, regex-based sorting, and blank-line handling.

为什么软件包爱好者会关心

keep-sorted is package-nerdy because it solves a recurring maintenance itch with a tiny explicit contract: the source file says which lines are machine-sortable. That makes it a useful complement to gofmt-style whole-file formatters and to pre-commit-driven hygiene stacks.

时间线

  • 2023-02-23: GitHub repository created.
  • 2024-01-23: v0.1.1, v0.2.0, and v0.3.0 releases published.
  • 2024-03-05: v0.4.0 added skip_lines and group_prefixes options.
  • 2024-09-27: v0.5.0 added YAML-list support for multi-valued options.
  • 2025-03-18: v0.6.0 added by_regex and a --version flag.
  • 2026-06-30: v0.9.1 published.

Related projects

  • keep-sorted is related to pre-commit, Go module distribution, repository-formatting tools, and language-specific formatters such as gofmt and clang-format, but it intentionally stays language-agnostic.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
keep-sorted可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

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

页面生成时间2026-08-03
管理器版本0.9.1
管理器更新时间2026-07-27
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:keep-sorted
版本0.9.1
软件包管理器Homebrew
主页https://github.com/google/keep-sorted
仓库https://github.com/google/keep-sorted
最后更新2026-07-27T21:58:38+02:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

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

Nix95%

keep-sorted

nix profile install nixpkgs#keep-sorted
  • normalized package name match
  • 匹配方式:Keep Sorted
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ke/keep-sorted/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation