macOS
brew install oqlocal Homebrew formula metadata
安装
brew install oqlocal Homebrew formula metadata
sudo apk add oqAlpine Linux edge package indexes · oq · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#oqnixpkgs package indexes · pkgs/by-name/oq/oq/package.nix · 来源: api.github.com
概览
Performant, and portable jq wrapper to support formats other than JSON
历史
oq is a Crystal-written wrapper around `jq` that converts non-JSON formats into JSON for filtering and then serializes the result back out. Its core idea is to keep jq's filter language while adding practical YAML and XML input/output paths.
George Dietrich introduced oq in a 2019 article after comparing existing jq-adjacent tooling and wanting a more portable, higher-performance option for large non-JSON documents. The project goals were portability, performance, and extending the formats that jq can handle without replacing jq's filter language.
The 1.x series broadened oq from a CLI into a small Crystal library as well. Release notes for v1.2.0 describe library support, a SimpleYAML format for streamable large inputs, and better handling of multiple non-JSON files; v1.3.0 added XML namespace options and forced-array behavior for XML parsing.
oq remains a niche developer utility, but it has enough packaging surface to be available through Homebrew, Alpine, MacPorts, and Nix in the input metadata. Homebrew describes it as a performant and portable jq wrapper, with Crystal required only for source builds.
A typical use keeps jq syntax in place and adds format flags, such as reading YAML with `-i yaml`, writing XML with `-o xml`, or using the tool as a Crystal dependency through `OQ::Processor`. That makes it useful in shell scripts where JSON, YAML, and XML need the same transformation logic.
oq is package-nerd interesting because it does less than a full data-query language and more than a one-off converter. It packages the proven jq execution model with format adapters and a single-binary distribution story, which is often the sweet spot for command-line glue.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
oq | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/Blacksmoke16/oq
安装元数据
| 软件包键 | brew:oq |
|---|---|
| 版本 | 1.3.5 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/oq |
| 主页 | https://blacksmoke16.github.io/oq |
| 仓库 | https://github.com/Blacksmoke16/oq |
| 上游文档 | https://blacksmoke16.github.io/oq |
| 许可证 | MIT |
| 源码归档 | https://github.com/Blacksmoke16/oq/archive/refs/tags/v1.3.5.tar.gz |
| 依赖 | bdw-gc, libyaml, pcre2 |
| 构建依赖 | crystal |
| macOS 提供的库 | jq, libxml2 |
| 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 | oq |
| Version Scheme | 0 |
| Revision | 2 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
oq
nix profile install nixpkgs#oqoq 1.3.5-r0
portable jq wrapper with support of other formats than JSON
https://github.com/blacksmoke16/oq
sudo apk add oqoq
sudo port install oq来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.