{"id":24942039,"url":"https://github.com/byjpr/maprewire","last_synced_at":"2025-12-11T23:52:05.347Z","repository":{"id":40350616,"uuid":"145459983","full_name":"byjpr/MapRewire","owner":"byjpr","description":"Syntactic sugar to bulk rekey maps","archived":false,"fork":false,"pushed_at":"2023-03-30T14:58:41.000Z","size":120,"stargazers_count":7,"open_issues_count":7,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-08T16:17:47.955Z","etag":null,"topics":["elixir","elixir-lang","elixir-language","elixir-library","hex","json","macros","maps"],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/map_rewire","language":"Elixir","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/byjpr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-08-20T19:12:09.000Z","updated_at":"2021-07-21T16:00:40.000Z","dependencies_parsed_at":"2023-07-15T07:33:35.330Z","dependency_job_id":null,"html_url":"https://github.com/byjpr/MapRewire","commit_stats":null,"previous_names":["byjord/maprewire"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjpr%2FMapRewire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjpr%2FMapRewire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjpr%2FMapRewire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byjpr%2FMapRewire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byjpr","download_url":"https://codeload.github.com/byjpr/MapRewire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154968,"owners_count":21056541,"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":["elixir","elixir-lang","elixir-language","elixir-library","hex","json","macros","maps"],"created_at":"2025-02-02T18:58:20.168Z","updated_at":"2025-12-11T23:52:05.299Z","avatar_url":"https://github.com/byjpr.png","language":"Elixir","readme":"# MapRewire\n\n[![Elixir CI](https://github.com/byjpr/MapRewire/actions/workflows/elixir.yml/badge.svg)](https://github.com/byjpr/MapRewire/actions/workflows/elixir.yml)\n[![Coverage Status](https://img.shields.io/coveralls/github/byjord/MapRewire.svg?style=flat-square)](https://coveralls.io/github/byjord/MapRewire)\n[![Libraries.io for releases](https://img.shields.io/librariesio/release/hex/map_rewire.svg?style=flat-square)](https://libraries.io/hex/map_rewire)\n\nBulk rekey your maps. Simple bud. (☞ﾟ ヮ ﾟ)☞\n\n### Why?\n\nSimply because I am _super lazy_, and writing out functions to take maps and convert them to different keys was boring (and irritating) me.\n\nStop writing `defp from_x_to_y(data), do: %{ \"another_id\" =\u003e data[\"id\"], \"name\" =\u003e data[\"title\"] }`.\n\n### TL;DR; Syntax\n\n1.  Macro: `content\u003c~\u003etransformation`, content is your data, transformation is your rules.\n2.  Content: Any map. BYOD.\n3.  Transformation: `from=\u003eto`. Left is the original key, right is the new key.\n\n## Getting started\n\n```elixir\ndef deps do\n  [\n    {:map_rewire, \"~\u003e 0.3.0\"}\n  ]\nend\n```\n\n## Contributors\n\n| [![byjord](https://avatars0.githubusercontent.com/u/6415727?v=4\u0026s=80)](https://github.com/byjord) | [![halostatue](https://avatars3.githubusercontent.com/u/11361?v=4\u0026s=80)](https://github.com/halostatue) |\n| :-----------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------: |\n|                                [byjord](https://github.com/byjord)                                |                               [halostatue](https://github.com/halostatue)                               |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjpr%2Fmaprewire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyjpr%2Fmaprewire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyjpr%2Fmaprewire/lists"}