macOS
brew install fxlocal Homebrew formula metadata
sudo port install fxMacPorts ports tree · sysutils/fx/Portfile · 来源: api.github.com
安装
brew install fxlocal Homebrew formula metadata
sudo port install fxMacPorts ports tree · sysutils/fx/Portfile · 来源: api.github.com
sudo apk add fxAlpine Linux edge package indexes · fx · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#fxnixpkgs package indexes · pkgs/by-name/fx/fx/package.nix · 来源: api.github.com
sudo pacman -S fxArch Linux sync databases · fx · 来源: geo.mirror.pkgbuild.com
sudo zypper install fxopenSUSE Tumbleweed package metadata · fx · 来源: download.opensuse.org
scoop install main/fxScoop official bucket manifest trees · bucket/fx.json · 来源: api.github.com
概览
Terminal JSON viewer
历史
fx is a terminal JSON viewer and processor that combines an interactive TUI with a JavaScript-powered command-line transformation model. Its current official site describes it as a CLI for JSON that can show JSON interactively, transform input with JavaScript, process streaming JSON, and also handle YAML and TOML.
The GitHub repository was created in January 2018, and GitHub Releases show 1.0.3 published the next day. The project is styled as f(x) in its README and documentation, with the docs explaining the name as the idea of applying a function to input data.
fx is now written in Go and embeds the goja JavaScript engine. Its release checklist shows a multi-channel distribution workflow: version bumps in the Go source, Snapcraft metadata, and npm package metadata, followed by npm publication, GitHub Actions for brew, snap, and Docker, and binary uploads to GitHub Releases.
fx fits into the post-jq wave of terminal JSON tools: it keeps JSON exploration in the terminal but adds a navigable interface, path suggestions, regex search, printing selected values to stdout, and JavaScript expressions instead of a separate query DSL. Supplied package-manager facts list packaging across Homebrew, apk, MacPorts, Nix, Arch, Scoop, and zypper.
Typical use is either `fx data.json` or piping JSON into `fx` for interactive browsing. In processing mode, arguments are JavaScript functions or shorthand expressions such as `.name`, and input data flows through each expression in sequence. The docs also describe streaming mode for line-delimited or concatenated JSON and a slurp option for collective array processing.
Package maintainers care about fx because it ships as a single Go-based terminal binary while still exposing JavaScript as the transformation language. It is a representative modern CLI package that crosses TUI browsing, JSON pretty-printing, shell pipelines, npm distribution, binary releases, Homebrew, Snap, and Docker.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
fx | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/antonmedv/fx
安装元数据
| 软件包键 | brew:fx |
|---|---|
| 版本 | 39.2.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/fx |
| 主页 | https://fx.wtf |
| 仓库 | https://github.com/antonmedv/fx |
| 上游文档 | https://fx.wtf/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/antonmedv/fx/archive/refs/tags/39.2.0.tar.gz |
| 构建依赖 | 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 | fx |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
fx
nix profile install nixpkgs#fxfx 39.2.0-r6
Command-line tool and terminal JSON viewer
https://github.com/antonmedv/fx
sudo apk add fxfx-doc 39.2.0-r6
Command-line tool and terminal JSON viewer (documentation)
https://github.com/antonmedv/fx
sudo apk add fx-docfx 39.2.0-1
Command-line tool and terminal JSON viewer
https://github.com/antonmedv/fx
sudo pacman -S fxfx 39.2.0-1.4
Terminal JSON viewer
sudo zypper install fxfx
sudo port install fxmain/fx
scoop install main/fx来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.