Automic VaultAutomic Vault

brew

使用 Homebrew 安装 xmq

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install xmq

local Homebrew formula metadata

概览

软件包摘要

Tool and language to work with xml/html/json

历史

项目历史与用法

XMQ is both a command-line tool and a compact markup syntax for working with XML, HTML, JSON, and related transforms. Its niche is making tree-shaped markup readable, editable, pretty-printable, and pipe-friendly without giving up round-tripping back to XML/HTML or JSON.

项目历史

The GitHub repository was created in 2019 and describes XMQ as a converter between XML/HTML and a more human-readable XMQ/HTMQ form, with JSON support, syntax highlighting, pretty printing, a pager, HTML and TeX rendering, and Invisible XML grammar support.

The project documentation and 2025 PDF by Fredrik Ohrstrom frame the design as a response to XML's editing pain: closing tags, significant whitespace, comments, attributes, entities, and transforms are represented in a syntax intended to remain visibly structured and always pretty-printable.

采用历史

XMQ is a modern niche tool rather than a broad standard. Its public adoption signal is mostly package-manager availability, GitHub activity, and command-line discussion among users who want XML/HTML/JSON inspection to feel more like jq-era terminal work.

The tool's practical appeal grew as it added more than one format conversion. The homepage examples show pretty-printing XML, HTML, and JSON; using an internal pager; deleting nodes with XPath; converting between xmq/xml/htmq/html/json; applying XSLT/XSLQ-style transforms; rendering to HTML or TeX; and parsing arbitrary input with ixml grammars.

使用方式

Typical xmq usage starts as a pretty-printer: run xmq pom.xml, xmq data.json, cat rss.xml | xmq, or pipe a web page through deletion and pager commands to inspect the structure. The same executable can convert back out with commands such as to-xml, to-html, and to-json.

Its more package-nerd use is as a bridge between tree formats and Unix text workflows. XMQ's compact form and clines-style output make it easier to grep, diff, store, or log structured markup while still keeping enough structure to reconstruct the original document.

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

XMQ is interesting because it treats XML not as obsolete, but as a powerful tree model with bad ergonomics. The package gives terminal users a reversible shorthand plus tools around XPath, transforms, paging, and rendering.

It also sits near a family of command-line format shims such as jq, yq, xq, xmlstarlet, and pup, but takes a different route: instead of only querying a source format, it introduces an alternate readable surface syntax for markup.

时间线

  • 2019-09-02: The libxmq/xmq GitHub repository is created.
  • 2020s: The tool expands around XML, HTML, JSON, syntax highlighting, paging, conversion, XSLT/XSLQ transforms, and ixml parsing.
  • 2025-08-04: The XMQ/HTMQ PDF presents the rationale and compact specification for the syntax.
  • 2026: The project is packaged in Homebrew and documented at libxmq.org as a standalone xmq tool plus embeddable C source.

Related projects

  • jq is the obvious JSON-side comparison for command-line structured-data inspection.
  • xmlstarlet and xq are adjacent XML command-line tools, though they query or transform existing formats rather than introducing XMQ as a reversible syntax.
  • Invisible XML is supported by xmq for parsing non-XML input through grammars.
  • libxml2 and libxslt are related XML infrastructure used throughout the broader XML tooling ecosystem.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

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

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

页面生成时间2026-07-25
管理器版本4.2.0
管理器更新时间2026-05-24
本地数据OK
上游当前
检测到的最新版本4.2.0

https://github.com/libxmq/xmq

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

安装元数据

软件包元数据

软件包键brew:xmq
版本4.2.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/xmq
主页https://libxmq.org
仓库https://github.com/libxmq/xmq
上游文档https://libxmq.org/
许可证MIT
源码归档https://github.com/libxmq/xmq/archive/refs/tags/4.2.0.tar.gz
最后更新2026-05-24T18:54:31Z
Pulseupdated
构建依赖pkgconf
macOS 提供的库libxml2, libxslt
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment