{"id":28724145,"url":"https://github.com/processone/yconf","last_synced_at":"2025-06-15T10:09:21.110Z","repository":{"id":50611758,"uuid":"184716021","full_name":"processone/yconf","owner":"processone","description":"YAML configuration processor","archived":false,"fork":false,"pushed_at":"2025-03-27T14:02:49.000Z","size":337,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-27T15:23:01.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/processone.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-05-03T07:34:36.000Z","updated_at":"2025-03-27T14:02:51.000Z","dependencies_parsed_at":"2024-12-18T16:38:25.212Z","dependency_job_id":"a0ad46c7-bd19-488c-9eaf-aabce251d5d3","html_url":"https://github.com/processone/yconf","commit_stats":{"total_commits":113,"total_committers":7,"mean_commits":"16.142857142857142","dds":"0.47787610619469023","last_synced_commit":"af756beb3dac1e1f2e1242edd899f0a26557afa6"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/processone/yconf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/processone%2Fyconf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/processone%2Fyconf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/processone%2Fyconf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/processone%2Fyconf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/processone","download_url":"https://codeload.github.com/processone/yconf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/processone%2Fyconf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259957280,"owners_count":22937549,"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":[],"created_at":"2025-06-15T10:09:19.693Z","updated_at":"2025-06-15T10:09:21.084Z","avatar_url":"https://github.com/processone.png","language":"Erlang","readme":"# YAML configuration processor\n\n[![CI](https://github.com/processone/yconf/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/processone/yconf/actions/workflows/ci.yml)\n[![Coverage Status](https://coveralls.io/repos/processone/yconf/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/processone/yconf?branch=master)\n[![Hex version](https://img.shields.io/hexpm/v/yconf.svg \"Hex version\")](https://hex.pm/packages/yconf)\n\nYou can find usage example in ejabberd. See `econf.erl` and `ejabberd_options.erl` for most parts that are using it.\n\nValidation is performed based on rules that you pass to `yconf:parser/2`, there is no way to load those rules from\nsome special syntax file. Generally you will do something like this:\n\n```\nyconf:parse(\"/home/me/conf.yml\", #{\n  host =\u003e yconf:string(),\n  opts =\u003e yconf:options(#{\n    addr =\u003e yconf:ip(),\n    count =\u003e yconf:non_neg_int()\n  }\n)}).\n```\n\nThat when feed with:\n\n```\nhost: \"test.com\"\nopts:\n  addr: \"127.0.0.1\"\n  count: 100\n```\n\nshould produce:\n\n```\n{ok,[{host,\"test.com\"},{opts,[{addr,{127,0,0,1}},{count,100}]}]}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprocessone%2Fyconf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprocessone%2Fyconf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprocessone%2Fyconf/lists"}