libxo
« Back to VersTracker
Description:
Allows an application to generate text, XML, JSON, and HTML output
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: library output-formatting xml json cli developer-tools
Install: brew install libxo
About:
Libxo is a library that allows applications to generate text, XML, JSON, and HTML output using a common set of function calls. It abstracts output formatting, enabling developers to easily switch between human-readable text and structured data formats. This significantly simplifies the creation of tools that need to support multiple output modes for automation and UI integration.
Key Features:
  • Unified API for multiple output formats
  • Zero-code changes to switch output types
  • Support for text, XML, JSON, and HTML
  • Extensible via renderers
Use Cases:
  • Adding JSON output to CLI tools for automation
  • Generating HTML documentation from CLI applications
  • Creating network daemons with structured logging
Alternatives:
  • libjansson – Libjansson is strictly for JSON encoding, whereas Libxo handles multiple formats including text and XML.
  • Manual printf – Manual string formatting requires separate logic for every output format, which Libxo handles dynamically.
Version History
Detected Version Rev Change Commit
Sep 16, 2025 3:33am 0 VERSION_BUMP 1ed67dc2
Oct 27, 2024 12:49pm 0 VERSION_BUMP 241aa276