toml2json
« Back to VersTracker
Description:
Convert TOML to JSON
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: toml json converter cli data-format utility
Install: brew install toml2json
About:
Toml2json is a command-line utility that reads TOML data from standard input or a file and converts it to JSON format. It provides a lightweight, reliable solution for transforming configuration files between these two popular data serialization formats. The tool is particularly useful in build pipelines and automation scripts where JSON is the required input format.
Key Features:
  • Stream-based processing for memory efficiency
  • Preserves data types during conversion
  • Simple, single-file binary with no external dependencies
  • Supports standard input and file input methods
Use Cases:
  • Converting TOML configuration files for use in Node.js applications
  • Preparing data for JSON-only APIs from TOML sources
  • Build pipeline automation for projects requiring format conversion
Alternatives:
  • yq – More powerful but heavier; supports multiple formats beyond TOML/JSON
  • python -c 'import tomllib, json; ...' – Requires Python runtime; more flexible for complex transformations
Version History
Detected Version Rev Change Commit
Sep 13, 2025 5:18am 0 VERSION_BUMP ced90eca