{"id":15397021,"url":"https://github.com/ryanhefner/rikey","last_synced_at":"2025-06-10T11:14:03.012Z","repository":{"id":62354863,"uuid":"339267995","full_name":"ryanhefner/rikey","owner":"ryanhefner","description":"🧰 Useful utilities for manipulating–and creating–Object instances.","archived":false,"fork":false,"pushed_at":"2021-02-17T04:40:04.000Z","size":265,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T23:13:34.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.pkgstats.com/pkg:rikey","language":"JavaScript","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/ryanhefner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ryanhefner","patreon":"ryanhefner","open_collective":"ryanhefner","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-02-16T02:48:58.000Z","updated_at":"2021-02-17T04:40:06.000Z","dependencies_parsed_at":"2022-10-31T10:47:09.286Z","dependency_job_id":null,"html_url":"https://github.com/ryanhefner/rikey","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhefner%2Frikey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhefner%2Frikey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhefner%2Frikey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhefner%2Frikey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanhefner","download_url":"https://codeload.github.com/ryanhefner/rikey/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247261584,"owners_count":20910107,"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":"2024-10-01T15:35:51.346Z","updated_at":"2025-04-04T22:42:00.279Z","avatar_url":"https://github.com/ryanhefner.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ryanhefner","https://patreon.com/ryanhefner","https://opencollective.com/ryanhefner"],"categories":[],"sub_categories":[],"readme":"# 🧰 rikey\n\n_(pronouned rē-kē, because `rekey` was taken)_\n\n[![npm](https://img.shields.io/npm/v/rikey?style=flat-square)](https://www.pkgstats.com/pkg:rikey)\n[![NPM](https://img.shields.io/npm/l/rikey?style=flat-square)](LICENSE)\n[![npm](https://img.shields.io/npm/dt/rikey?style=flat-square)](https://www.pkgstats.com/pkg:rikey)\n[![Coveralls github](https://img.shields.io/coveralls/github/ryanhefner/rikey?style=flat-square)](https://coveralls.io/github/ryanhefner/rikey)\n[![codecov](https://codecov.io/gh/ryanhefner/rikey/branch/master/graph/badge.svg)](https://codecov.io/gh/ryanhefner/rikey)\n[![CircleCI](https://img.shields.io/circleci/build/github/ryanhefner/rikey?style=flat-square)](https://circleci.com/gh/ryanhefner/rikey)\n\nUseful utilities for manipulating–and creating–Object instances.\n\n## Install\n\nVia [npm](https://npmjs.com/package/rikey)\n\n```\nnpm install --save rikey\n```\n\nVia [Yarn](https://yarn.fyi/rikey)\n\n```\nyarn add rikey\n```\n\n## How to use\n\n### `reKey`\n\n```js\nimport { reKey } from 'rikey'\n\nconst newKeys = reKey({\n  oldKey: 'something',\n  olderKey: 'nothing',\n}, {\n  oldKey: 'newKey',\n  olderKey: 'newerKey'\n})\n\nconsole.log(newKeys)\n```\n```\nOutput: { newKey: 'something', newerKey: 'nothing' }\n```\n\n### `mapKeys`\n\n```js\nconst mappedKeys = mapKeys([0, 1, 2], ['first', 'second', 'third'])\nconsole.lot(mappedKeys)\n```\n```\nOutput: { first: 0, second: 1, third: 2 }\n```\n\n## License\n\n[MIT](LICENSE) © [Ryan Hefner](https://www.ryanhefner.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanhefner%2Frikey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanhefner%2Frikey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanhefner%2Frikey/lists"}