macOS
brew install jsonfmtlocal Homebrew formula metadata
安装
brew install jsonfmtlocal Homebrew formula metadata
nix profile install nixpkgs#jsonfmtnixpkgs package indexes · pkgs/by-name/js/jsonfmt/package.nix · 来源: api.github.com
概览
Like gofmt, but for JSON files
历史
jsonfmt is a Go command-line formatter for JSON files, explicitly modeled as `gofmt` for JSON.
Carlos Becker introduced jsonfmt in a November 12, 2018 blog post after needing consistent JSON formatting for a Chef-heavy project. The post describes rejecting heavier or awkward alternatives, then arriving at Go's standard `json.Indent` as the simple implementation core.
The GitHub repository was created in November 2018 and packages the formatter as a small static CLI with release artifacts for several installation paths.
Adoption is practical and small-scale: Homebrew, Docker, apt/yum repository instructions, deb/rpm packages, and manual binaries are documented by the project. The intended users are teams that want JSON formatting in CI or pre-commit workflows without pulling in a larger JavaScript formatter stack.
The README documents `jsonfmt` for checking and `jsonfmt -w` for rewriting files. Becker's blog describes using `jsonfmt -w` locally and plain `jsonfmt` in CI so formatting drift fails the build.
jsonfmt is notable as a minimal native alternative to general-purpose formatters. Its charm is that it mostly packages a standard-library behavior into a predictable CLI, which is exactly the sort of small tool package managers are good at preserving.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
jsonfmt | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/caarlos0/jsonfmt
安装元数据
| 软件包键 | brew:jsonfmt |
|---|---|
| 版本 | 0.5.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/jsonfmt |
| 主页 | https://github.com/caarlos0/jsonfmt |
| 仓库 | https://github.com/caarlos0/jsonfmt |
| 上游文档 | https://github.com/caarlos0/jsonfmt#readme |
| 许可证 | MIT |
| 源码归档 | https://github.com/caarlos0/jsonfmt/archive/refs/tags/v0.5.2.tar.gz |
| 最后更新 | 2026-07-17T17:20:40+09:00 |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | jsonfmt |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | yes |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
jsonfmt
nix profile install nixpkgs#jsonfmt来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.