{"id":16625723,"url":"https://github.com/aleclarson/keymirror","last_synced_at":"2025-08-13T07:15:54.479Z","repository":{"id":29371414,"uuid":"32906144","full_name":"aleclarson/keymirror","owner":"aleclarson","description":"A flexible key mirror. { key1: \"key1\", key2: \"key2\" }","archived":false,"fork":false,"pushed_at":"2018-12-05T14:34:26.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T12:33:43.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CoffeeScript","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/aleclarson.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":"2015-03-26T03:46:57.000Z","updated_at":"2017-08-29T21:13:05.000Z","dependencies_parsed_at":"2022-08-03T12:00:32.345Z","dependency_job_id":null,"html_url":"https://github.com/aleclarson/keymirror","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aleclarson/keymirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fkeymirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fkeymirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fkeymirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fkeymirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aleclarson","download_url":"https://codeload.github.com/aleclarson/keymirror/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aleclarson%2Fkeymirror/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270202757,"owners_count":24544395,"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-10-12T04:06:57.677Z","updated_at":"2025-08-13T07:15:54.417Z","avatar_url":"https://github.com/aleclarson.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### keymirror 1.0.0 ![stable](https://img.shields.io/badge/stability-stable-4EBA0F.svg?style=flat)\n\n**TODO:** Rewrite this using [`Type`](https://github.com/aleclarson/Type) if we can.\n\n```coffee\nKeyMirror = require \"keymirror\"\n\n# Construct an empty KeyMirror.\nm1 = KeyMirror()\nm1._keys   # []\nm1._length # 0\n\n# Add your keys.\nm1._add \"a\", \"b\", \"c\"\nm1._keys # [\"a\", \"b\", \"c\"]\n\n# Access your keys.\nm1.a # \"a\"\nm1.b # \"b\"\nm1.c # \"c\"\n\n# Remove your keys.\nm1._remove \"a\", \"c\"\n\n# Construct a KeyMirror from Arrays, Strings, Objects, and even KeyMirrors.\nm2 = KeyMirror [\"d\"], \"e\", { f: 0 }, m1\nm2._keys # [\"b\", \"d\", \"e\", \"f\"]\n\n# Mix in those types after creation.\nm2._add [\"x\"], { y: false }, \"r2d2\"\nm2._keys # [\"b\", \"d\", \"e\", \"f\", \"x\", \"y\", \"r2d2\"]\n\n# Clone a KeyMirror with clear intent.\nm3 = m1._clone()\nm3._keys # [\"b\"]\nm3 is m1 # false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fkeymirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faleclarson%2Fkeymirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faleclarson%2Fkeymirror/lists"}