yj
« Back to VersTracker
Description:
CLI to convert between YAML, TOML, JSON and HCL
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli converter yaml json toml hcl
Install: brew install yj
About:
Yj is a command-line interface tool designed for seamless conversion between various popular data serialization formats including YAML, TOML, JSON, and HCL. It provides a robust solution for developers needing to transform configuration files or data structures without relying on external interpreters or complex scripting. By handling format-specific nuances, it ensures data integrity and simplifies workflow integration.
Key Features:
  • Zero-dependency binary written in Go for high performance
  • Supports bidirectional conversion between YAML, TOML, JSON, and HCL
  • Preserves data types and structure during conversion
  • Simple, intuitive CLI for easy scripting and automation
Use Cases:
  • Converting configuration files between formats for different tools (e.g., Terraform HCL to JSON for programmatic use)
  • Standardizing data formats in CI/CD pipelines
  • Parsing YAML or TOML in environments where only JSON is supported
Alternatives:
  • yq – yq is primarily for querying and manipulating YAML/JSON, whereas yj focuses specifically on format conversion.
  • jo – jo creates JSON from the command line but does not support bidirectional conversion or other formats like HCL.
Version History
Detected Version Rev Change Commit
Sep 11, 2025 7:39pm 0 VERSION_BUMP 01bd0860