{"id":13550846,"url":"https://github.com/sclevine/yj","last_synced_at":"2025-05-14T10:12:22.673Z","repository":{"id":41274846,"uuid":"84151553","full_name":"sclevine/yj","owner":"sclevine","description":"CLI - Convert between YAML, TOML, JSON, and HCL. Preserves map order.","archived":false,"fork":false,"pushed_at":"2024-01-01T17:54:01.000Z","size":358,"stargazers_count":990,"open_issues_count":22,"forks_count":51,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-03T19:10:03.659Z","etag":null,"topics":["cli","convert","converter","go","golang","hcl","json","toml","yaml"],"latest_commit_sha":null,"homepage":"","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/sclevine.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-07T03:44:19.000Z","updated_at":"2025-03-18T14:17:14.000Z","dependencies_parsed_at":"2023-12-15T00:26:45.898Z","dependency_job_id":"775031af-618d-48fc-a6a0-501f53c8134f","html_url":"https://github.com/sclevine/yj","commit_stats":{"total_commits":72,"total_committers":8,"mean_commits":9.0,"dds":0.125,"last_synced_commit":"80164002c0d7f88aa58fa5bec8a8cf4f1bb4e93b"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclevine%2Fyj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclevine%2Fyj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclevine%2Fyj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclevine%2Fyj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclevine","download_url":"https://codeload.github.com/sclevine/yj/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248338026,"owners_count":21087150,"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","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":["cli","convert","converter","go","golang","hcl","json","toml","yaml"],"created_at":"2024-08-01T12:01:38.461Z","updated_at":"2025-04-11T03:36:49.684Z","avatar_url":"https://github.com/sclevine.png","language":"Go","readme":"\u003cimg src=\"logo.png\" alt=\"yj\" width=\"180\" /\u003e\n\n[![GoDoc](https://pkg.go.dev/badge/github.com/sclevine/yj/v5?status.svg)](https://pkg.go.dev/github.com/sclevine/yj/v5)\n[![Tests](https://github.com/sclevine/yj/actions/workflows/go.yml/badge.svg)](https://github.com/sclevine/yj/actions/workflows/go.yml)\n\n[![Packaging status](https://repology.org/badge/tiny-repos/yj-sclevine.svg)](https://repology.org/project/yj-sclevine/versions)\n\n##\n\nConvert between YAML, TOML, JSON, and HCL.\n\nPreserves map order.\n\nFormat versions:\n- YAML: **v1.2** (gopkg.in/yaml.v3)\n- TOML: **v1.0.0** (github.com/BurntSushi/toml)\n- JSON: **RFC 7159** (encoding/json)\n- HCL: **v1** (github.com/hashicorp/hcl)\n\n```\n$ yj -h\nUsage: yj [-][ytjcrneikhv]\n\nConvert between YAML, TOML, JSON, and HCL.\nPreserves map order.\n\n-x[x]  Convert using stdin. Valid options:\n          -yj, -y = YAML to JSON (default)\n          -yy     = YAML to YAML\n          -yt     = YAML to TOML\n          -yc     = YAML to HCL\n          -tj, -t = TOML to JSON\n          -ty     = TOML to YAML\n          -tt     = TOML to TOML\n          -tc     = TOML to HCL\n          -jj     = JSON to JSON\n          -jy, -r = JSON to YAML\n          -jt     = JSON to TOML\n          -jc     = JSON to HCL\n          -cy     = HCL to YAML\n          -ct     = HCL to TOML\n          -cj, -c = HCL to JSON\n          -cc     = HCL to HCL\n-n     Do not covert inf, -inf, and NaN to/from strings (YAML or TOML only)\n-e     Escape HTML (JSON out only)\n-i     Indent output (JSON or TOML out only)\n-k     Attempt to parse keys as objects or numeric types (YAML out only)\n-h     Show this help message\n-v     Show version\n```\n\n## Installation\n\n### Homebrew\n\nThe `yj` CLI is available via [Homebrew](https://brew.sh):\n\n```bash\nbrew install yj\n```\n\n### Manual\n\nBinaries for macOS, Linux, and Windows are [attached to each release](https://github.com/sclevine/yj/releases).\n\n### Docker\n\n`yj` is also available as a [Docker image](https://hub.docker.com/r/sclevine/yj).\n\n## Go Package\n\nPackages contained in this repo may also be used to convert all supported data formats to a normalized tree of ordered Go objects.\n\nSee [godoc](https://pkg.go.dev/github.com/sclevine/yj) for details.\n\nNOTE: The current Go API should not be considered stable.\n","funding_links":[],"categories":["Go","Tools","Recently Updated","cli","golang","Other"],"sub_categories":["Community providers","[Feb 10, 2025](/content/2025/02/10/README.md)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclevine%2Fyj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclevine%2Fyj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclevine%2Fyj/lists"}