Automic VaultAutomic Vault

brew

Installer json2hcl avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de json2hcl pour les workflows d'agents IA.

installation

Commandes d'installation supplémentaires

macOS

Homebrewvérifié · 100%
brew install json2hcl

local Homebrew formula metadata

Linux

Nixvérifié · 92%
nix profile install nixpkgs#json2hcl

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

aperçu

Résumé du paquet

Convert JSON to HCL, and vice versa

Commandes et alias

  • json2hcl

historique

Historique du projet et usages

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.

Historique du projet

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.

Historique d'adoption

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.

Modes d'utilisation

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.

Pourquoi les passionnés de paquets s'y intéressent

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.

Chronologie

  • 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.

posture de sécurité

Niveau de risque : vert

narrow executable package without higher-risk signals.

Classificateur de risque

risque vert · confiance faible · appliance

Pourquoi

  • narrow executable package without higher-risk signals

Signaux

  • metadata:no-higher-risk-signals

Comportement d'installation

  • Aucun hook post-install Homebrew n’est enregistré dans les métadonnées de formule.
  • Les métadonnées de bottle Homebrew sont disponibles pour 8 plateformes.
  • Les métadonnées de compilation listent 1 dépendances de compilation.

Revue recommandée

Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des plugins.

exécutables

Exécutables installés

CommandeTypeExpositionNote
json2hclcliexécutable global

fraîcheur

Version et fraîcheur

Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.

page générée2026-07-25
version du gestionnaire0.2.0
gestionnaire mis à jour2026-05-19
données localesOK
amontà jour
dernière version détectéev0.2.0

https://github.com/kvz/json2hcl

  • OKAucun avertissement de fraîcheur n'a été généré.

métadonnées d'installation

Métadonnées du paquet

Clé du paquetbrew:json2hcl
Version0.2.0
Gestionnaire de paquetsHomebrew
Page du gestionnaire de paquetshttps://formulae.brew.sh/formula/json2hcl
Page d'accueilhttps://github.com/kvz/json2hcl
Dépôthttps://github.com/kvz/json2hcl
Docs amonthttps://github.com/kvz/json2hcl#readme
LicenceMIT
Archive sourcehttps://github.com/kvz/json2hcl/archive/refs/tags/v0.2.0.tar.gz
Dernière mise à jour2026-05-19T07:48:50-04:00
Pulseupdated
Dépendances de compilationgo
Bouteilledisponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
post-install Homebrewnon défini
Serviceaucun déclaré

faits du registre

Détails de la base source

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

correspondances dans les bases sources

Autres enregistrements de gestionnaires de paquets

Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.

Nix95%

json2hcl

nix profile install nixpkgs#json2hcl
  • normalized package name match
  • Correspondance par : 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

piste source

Généré depuis les données du dépôt

Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.

Sources utilisées

  • 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