{"id":20537038,"url":"https://github.com/cvik/maputils","last_synced_at":"2025-08-13T22:07:37.900Z","repository":{"id":57520906,"uuid":"129399782","full_name":"cvik/maputils","owner":"cvik","description":"Erlang map utilities","archived":false,"fork":false,"pushed_at":"2022-06-28T00:18:38.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-17T12:16:30.910Z","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/cvik.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}},"created_at":"2018-04-13T12:32:24.000Z","updated_at":"2022-06-28T00:18:40.000Z","dependencies_parsed_at":"2022-09-26T18:01:07.853Z","dependency_job_id":null,"html_url":"https://github.com/cvik/maputils","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/cvik/maputils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Fmaputils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Fmaputils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Fmaputils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Fmaputils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cvik","download_url":"https://codeload.github.com/cvik/maputils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cvik%2Fmaputils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270324027,"owners_count":24564787,"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-08-13T02:00:09.904Z","response_time":66,"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":[],"created_at":"2024-11-16T00:38:42.706Z","updated_at":"2025-08-13T22:07:37.399Z","avatar_url":"https://github.com/cvik.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Maputils - Utilities for erlang maps\n\n## Exports\n\n```erlang\ndeep_get(Keys, Map) -\u003e Value\ndeep_put(Keys, Value, Map) -\u003e Map\nmake_hierarchi(Order, Maps) -\u003e Map\nmake_hierarchi(Order, Maps, dont_keep | keep) -\u003e Map\n```\n\n## Example usage\n\n```erlang\n1\u003e l(maputils).\nok\n2\u003e maputils:deep_get([\"1\", \"deep_key\"], #{\"1\" =\u003e #{\"deep_key\" =\u003e \"deep_value\"}}).\n\"deep_value\"\n3\u003e maputils:deep_put([\"1\", \"2\", \"deep_key\"], deep_value, #{}).\n#{\"1\" =\u003e #{\"2\" =\u003e #{\"deep_key\" =\u003e deep_value}}}\n4\u003e maputils:make_hierarchi([\"id\", \"2\"],\n                           [#{\"id\" =\u003e 1, \"2\" =\u003e 2, three =\u003e 3},\n                            #{\"id\" =\u003e a, \"2\" =\u003e b, three =\u003e c},\n                            #{\"id\" =\u003e x, \"2\" =\u003e y, three =\u003e z}]).\n#{1 =\u003e #{2 =\u003e [#{three =\u003e 3}]},\n  a =\u003e #{b =\u003e [#{three =\u003e c}]},\n  x =\u003e #{y =\u003e [#{three =\u003e z}]}}\n5\u003e maputils:make_hierarchi([\"id\", \"2\"],\n                           [#{\"id\" =\u003e 1, \"2\" =\u003e 2, three =\u003e 3},\n                            #{\"id\" =\u003e a, \"2\" =\u003e b, three =\u003e c},\n                            #{\"id\" =\u003e x, \"2\" =\u003e y, three =\u003e z}],\n                           keep).\n#{1 =\u003e #{2 =\u003e [#{three =\u003e 3,\"2\" =\u003e 2,\"one\" =\u003e 1}]},\n  a =\u003e #{b =\u003e [#{three =\u003e c,\"2\" =\u003e b,\"one\" =\u003e a}]},\n  x =\u003e #{y =\u003e [#{three =\u003e z,\"2\" =\u003e y,\"one\" =\u003e x}]}}\n```\n\n## License\n\nApache license version 2.0. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvik%2Fmaputils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcvik%2Fmaputils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcvik%2Fmaputils/lists"}