Automic VaultAutomic Vault

brew

json2hcl mit Homebrew, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für json2hcl in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install json2hcl

local Homebrew formula metadata

Linux

Nixverifiziert · 92%
nix profile install nixpkgs#json2hcl

nixpkgs package indexes · pkgs/by-name/js/json2hcl/package.nix · Quelle: api.github.com

Überblick

Paketzusammenfassung

Convert JSON to HCL, and vice versa

Befehle und Aliase

  • json2hcl

Verlauf

Projektgeschichte und Nutzung

json2hcl is a small Go command-line converter for moving data between JSON and HashiCorp Configuration Language. Its niche is the Terraform-era need to translate machine-friendly JSON into a more readable HCL form without building a larger configuration system.

Projektgeschichte

Kevin van Zonneveld published json2hcl in September 2016 around a workflow for an internal tool named Frey. The README says the authors wanted to store infrastructure recipes as HCL after converting from machine-readable JSON, YAML, or TOML, and it explicitly notes that the tool used existing HashiCorp libraries rather than inventing a parser.

The project soon added reverse conversion with the `-reverse` flag, exposing hcl2json behavior through the same executable. By June 25, 2025, the GitHub repository was archived; its README states that the original author no longer used it, while leaving the code available for forks.

Adoptionsgeschichte

Adoption appears to have been modest but durable in package-manager terms: the tool was packaged by Homebrew and Nix, and the repository accumulated hundreds of stars and forks before archival. Its presence in Homebrew reflects the small-CLI pattern where a narrow converter remains useful even after upstream development slows.

Wie es verwendet wird

The canonical usage is Unix-pipeline oriented: feed JSON on standard input and receive HCL on standard output, or pass `-reverse` to convert HCL back to JSON. The README examples focus on Terraform-like `.tf.json` input and redirection to `.tf` files.

Warum Paket-Nerds sich dafür interessieren

json2hcl is interesting because it captures a short period when HCL was becoming a preferred human-edited configuration language around HashiCorp tools, while JSON remained the common interchange format. For package collectors, it is a tiny bridge utility whose package-manager value is convenience rather than ecosystem size.

Zeitleiste

  • 2016-09-05: The GitHub repository was created.
  • 2016-09-05: v0.0.4 changelog entry covered error handling and release cross-compilation.
  • 2016-09-06: v0.0.5 added reverse HCL-to-JSON conversion through `-reverse`.
  • 2024-09-05: GitHub listed v0.2.0 among repository releases.
  • 2025-06-25: The repository was archived by its owner.

Related projects

  • json2hcl is directly tied to HashiCorp HCL and Terraform-style JSON configuration. It also sits near other one-purpose data converters such as hcl2json, JSON-to-YAML tools, and Unix filters used in infrastructure repositories.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 8 Plattformziele verfügbar.
  • Build-Metadaten listen 1 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
json2hclcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-25
Manager-Version0.2.0
Manager aktualisiert2026-05-19
lokale DatenOK
Upstreamaktuell
neueste erkannte Versionv0.2.0

https://github.com/kvz/json2hcl

  • OKEs wurden keine Aktualitätswarnungen generiert.

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:json2hcl
Version0.2.0
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/json2hcl
Homepagehttps://github.com/kvz/json2hcl
Repositoryhttps://github.com/kvz/json2hcl
Upstream-Dokumentationhttps://github.com/kvz/json2hcl#readme
LizenzMIT
Quellarchivhttps://github.com/kvz/json2hcl/archive/refs/tags/v0.2.0.tar.gz
Zuletzt aktualisiert2026-05-19T07:48:50-04:00
Pulseupdated
Build-Abhängigkeitengo
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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

Source-Datenbank-Treffer

Andere Paketmanager-Einträge

Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.

Nix95%

json2hcl

nix profile install nixpkgs#json2hcl
  • normalized package name match
  • Abgeglichen nach: Json2hcl
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/js/json2hcl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

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