{"id":15837087,"url":"https://github.com/afeiship/kiv","last_synced_at":"2025-07-31T11:08:14.516Z","repository":{"id":57112675,"uuid":"76724930","full_name":"afeiship/kiv","owner":"afeiship","description":"Key includes value.","archived":false,"fork":false,"pushed_at":"2023-03-08T11:30:56.000Z","size":587,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T20:47:04.465Z","etag":null,"topics":["contains","includes","key","kiv","value"],"latest_commit_sha":null,"homepage":"","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/afeiship.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-12-17T13:14:34.000Z","updated_at":"2023-03-08T11:53:57.000Z","dependencies_parsed_at":"2023-07-17T08:41:10.143Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/kiv","commit_stats":null,"previous_names":["afeiship/react-radio-group"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fkiv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fkiv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fkiv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fkiv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/kiv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246671047,"owners_count":20815089,"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":["contains","includes","key","kiv","value"],"created_at":"2024-10-05T15:20:49.644Z","updated_at":"2025-04-01T16:34:20.314Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kiv\n\u003e Key includes value.\n\n[![version][version-image]][version-url]\n[![license][license-image]][license-url]\n[![size][size-image]][size-url]\n[![download][download-image]][download-url]\n\n## installation\n```shell\nnpm install @jswork/kiv\n```\n\n## usage\n```js\nimport kiv from '@jswork/kiv';\n\nconst str2icon = {\n  '@beta': '🍏',\n  '@production': '🍎',\n  '@upload': '🚚',\n  '@cache': '📦',\n};\n\n\nkiv('Current msg is __@beta__.', str2icon); // Current msg is 🍏.\nkiv('Current msg is __@production__.', str2icon); // Current msg is 🍎.\nkiv('Current msg is __@upload__.', str2icon); // Current msg is 🚚.\nkiv('Current msg is __@cache__.', str2icon); // Current msg is 📦.\nkiv('Current msg is __@unknown__.', str2icon); // Current msg is ''.\nkiv('Current msg is __@unknown__.', str2icon, '🍌'); // Current msg is 🍌.\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/kiv/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/kiv\n[version-url]: https://npmjs.org/package/@jswork/kiv\n\n[license-image]: https://img.shields.io/npm/l/@jswork/kiv\n[license-url]: https://github.com/afeiship/kiv/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/kiv\n[size-url]: https://github.com/afeiship/kiv/blob/master/dist/kiv.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/kiv\n[download-url]: https://www.npmjs.com/package/@jswork/kiv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fkiv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fkiv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fkiv/lists"}