{"id":13550846,"url":"https://github.com/sclevine/yj","last_synced_at":"2026-09-06T19:26:07.768Z","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":"2026-05-15T20:39:18.000Z","size":355,"stargazers_count":1052,"open_issues_count":26,"forks_count":59,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-08-19T18:17:01.219Z","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":"2026-08-18T02:19:53.000Z","dependencies_parsed_at":"2023-12-15T00:26:45.898Z","dependency_job_id":"e357286b-8e1c-46c6-b285-2e66c1a467bc","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,"purl":"pkg:github/sclevine/yj","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclevine%2Fyj/sbom","scorecard":{"id":805040,"data":{"date":"2025-08-11","repo":{"name":"github.com/sclevine/yj","commit":"80164002c0d7f88aa58fa5bec8a8cf4f1bb4e93b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/24 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/sclevine/yj/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sclevine/yj/go.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v5.1.0 not signed: https://api.github.com/repos/sclevine/yj/releases/64179111","Warn: release artifact v5.0.0 not signed: https://api.github.com/repos/sclevine/yj/releases/28941756","Warn: release artifact v4.0.0 not signed: https://api.github.com/repos/sclevine/yj/releases/17162374","Warn: release artifact v3.1.0 not signed: https://api.github.com/repos/sclevine/yj/releases/15149003","Warn: release artifact v3.0 not signed: https://api.github.com/repos/sclevine/yj/releases/14894809","Warn: release artifact v5.1.0 does not have provenance: https://api.github.com/repos/sclevine/yj/releases/64179111","Warn: release artifact v5.0.0 does not have provenance: https://api.github.com/repos/sclevine/yj/releases/28941756","Warn: release artifact v4.0.0 does not have provenance: https://api.github.com/repos/sclevine/yj/releases/17162374","Warn: release artifact v3.1.0 does not have provenance: https://api.github.com/repos/sclevine/yj/releases/15149003","Warn: release artifact v3.0 does not have provenance: https://api.github.com/repos/sclevine/yj/releases/14894809"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 10 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T11:33:14.522Z","repository_id":41274846,"created_at":"2025-08-23T11:33:14.522Z","updated_at":"2025-08-23T11:33:14.522Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37086560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-06T02:00:05.694Z","response_time":54,"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":["cli","convert","converter","go","golang","hcl","json","toml","yaml"],"created_at":"2024-08-01T12:01:38.461Z","updated_at":"2026-09-06T19:26:07.486Z","avatar_url":"https://github.com/sclevine.png","language":"Go","funding_links":[],"categories":["Go","Tools","Recently Updated","cli","golang","Other"],"sub_categories":["Community providers","[Feb 10, 2025](/content/2025/02/10/README.md)"],"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","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"}