{"id":19627701,"url":"https://github.com/maoertel/hoconvert","last_synced_at":"2025-07-31T01:16:27.228Z","repository":{"id":39709361,"uuid":"420392338","full_name":"maoertel/hoconvert","owner":"maoertel","description":"CLI tool to convert HOCON into valid JSON or YAML written in Rust.","archived":false,"fork":false,"pushed_at":"2023-04-11T07:15:11.000Z","size":37,"stargazers_count":34,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-27T04:51:37.251Z","etag":null,"topics":["clap","cli","hocon","json","rust","yaml"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maoertel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-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":"2021-10-23T11:22:55.000Z","updated_at":"2024-11-21T08:54:11.000Z","dependencies_parsed_at":"2024-11-11T11:52:48.302Z","dependency_job_id":"9aa85e67-1b25-4988-a606-cd5c91f11c4f","html_url":"https://github.com/maoertel/hoconvert","commit_stats":{"total_commits":24,"total_committers":3,"mean_commits":8.0,"dds":"0.16666666666666663","last_synced_commit":"6a2ea3b529719d3b5cd77b764345048b471cbc61"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/maoertel/hoconvert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fhoconvert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fhoconvert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fhoconvert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fhoconvert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maoertel","download_url":"https://codeload.github.com/maoertel/hoconvert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maoertel%2Fhoconvert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267599153,"owners_count":24113702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"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":["clap","cli","hocon","json","rust","yaml"],"created_at":"2024-11-11T11:52:37.687Z","updated_at":"2025-07-31T01:16:26.936Z","avatar_url":"https://github.com/maoertel.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# {hocon:vert}\n\nCLI Tool to convert `HOCON` into valid `JSON` or `YAML`.\n\nUnder normal circumstances this is mostly not needed because hocon configs are parsed \nwithin the application – case closed. But for example in conjunction with Kubernetes \nwhere `.conf` files can reside in `ConfigMaps` there was that need to extract information \non command line from time to time. And what would be more comfortable than to use `jq` \nfor this.   \n\n## Usage\n\n```bash\nhoconvert [input | --file \u003cpath\u003e] [--output (yaml|json)]\n```\n\nEither provide the hocon as first argument:\n\n```bash \nhoconvert \"foo = bar\"\n```\n\nor provide it from `stdin`, \n\n```bash\necho \"foo = bar\" | hoconvert\n``` \n\nwhich leads to the following output:\n\n```json\n{\n  \"foo\": \"bar\"\n}\n```\n\nYou can also read the hocon from a file by providing the path:\n\n```bash\nhoconvert -f config.hocon\n```\n\nHere is an example of a real-life Kubernetes problem as stated above:\n\n```bash\nkubectl get cm \u003cany ConfigMap\u003e -o jsonpath='{.data.myHocon}' | jq -r | hoconvert | jq '.doWhatEverYouWant'\n```\n\n## Installation\n\n### Install with homebrew\n\nIn case you use `brew` you can install `hoconvert` as follows:\n\n```bash\nbrew tap maoertel/tap\nbrew install hoconvert\n```\n\nYou can install from `brew` for the following architectures: `macOS/amd64`, `macOS/arm64` or `linux/amd64`.\n\n### Download the binary\n\nYou can download a binary of the [latest release](https://github.com/maoertel/hoconvert/releases)\ncurrently for `macOS/amd64`, `macOS/arm64` and `linux/amd64`.\n\n### Install with cargo\n\nIn case you have `cargo` installed this is the easiest way to install `hoconvert` from \n[crates.io](https://crates.io/crates/hoconvert) in match to your underlying architecture:\n\n```bash\ncargo install hoconvert\n```\n\n### Build it yourself\n\nCheck this repo out, change into the project directory and run:\n```bash\ncargo build --release\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoertel%2Fhoconvert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaoertel%2Fhoconvert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaoertel%2Fhoconvert/lists"}