{"id":34132957,"url":"https://github.com/relusc/hclconv","last_synced_at":"2026-03-12T03:31:08.409Z","repository":{"id":39884322,"uuid":"488257491","full_name":"relusc/hclconv","owner":"relusc","description":"Simple tool to convert JSON files to HCL2 files and vice versa","archived":false,"fork":false,"pushed_at":"2023-05-22T14:01:53.000Z","size":27,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T14:06:44.107Z","etag":null,"topics":["convert","converter","hcl","hcl2","json"],"latest_commit_sha":null,"homepage":"https://github.com/relusc/hclconv","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/relusc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-03T15:09:51.000Z","updated_at":"2025-01-23T19:01:09.000Z","dependencies_parsed_at":"2024-06-20T08:21:23.590Z","dependency_job_id":null,"html_url":"https://github.com/relusc/hclconv","commit_stats":null,"previous_names":["rescdev/hclconv"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/relusc/hclconv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relusc%2Fhclconv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relusc%2Fhclconv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relusc%2Fhclconv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relusc%2Fhclconv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/relusc","download_url":"https://codeload.github.com/relusc/hclconv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/relusc%2Fhclconv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30414264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T00:40:14.898Z","status":"online","status_checked_at":"2026-03-12T02:00:07.260Z","response_time":114,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["convert","converter","hcl","hcl2","json"],"created_at":"2025-12-15T01:01:56.132Z","updated_at":"2026-03-12T03:31:08.404Z","avatar_url":"https://github.com/relusc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hclconv\n\nSimple tool to convert JSON files to HCL2 files and vice versa. It was intended for personal use and therefore its implementation might have a few flaws (I'm not a Go expert, but I have been using it for a while and I really like it).\n\n## Installation\n\nDownload the binary fitting your platform from the [releases](https://github.com/rescDev/hclconv/releases) page.\n\n## Usage\n\n## Convert HCL file to JSON\n\n```bash\nhclconv --in sample.tfvars --out sample.tfvars.json\n```\n\n## Convert JSON file to HCL\n\n```bash\nhclconv --in sample.tfvars.json --out sample.tfvars\n```\n\n## Convert JSON file to HCL and format its content\n\n**NOTE**: This requires the [`terraform`](https://github.com/hashicorp/terraform) CLI tool to be installed as the format is done by running `terraform fmt \u003coutput-file\u003e`.\n\n```bash\nhclconv --format --in sample.tfvars.json --out sample.tfvars\n```\n\n## Contributing\n\nContributions are very welcome ! As written initially, there might be a few things that can be improved. So if you stumble across this project and want to add things or improve the implementation, feel free to propose your changes :)\n\n## Maintainers\n\nRene Schach - [@relusc](https://github.com/relusc)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelusc%2Fhclconv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frelusc%2Fhclconv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frelusc%2Fhclconv/lists"}