macOS
brew install xmqlocal Homebrew formula metadata
インストール
brew install xmqlocal 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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
xmq | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
インストールメタデータ
| パッケージキー | 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 |
| Pulse | updated |
| ビルド依存関係 | pkgconf |
| macOS 提供ライブラリ | libxml2, libxslt |
| 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 | xmq |
| 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 |
|
ソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.