{"id":17134665,"url":"https://github.com/wbhob/key-value","last_synced_at":"2025-03-24T06:17:29.563Z","repository":{"id":70644481,"uuid":"115635548","full_name":"wbhob/key-value","owner":"wbhob","description":"A utility for creating a key-value map from an object.","archived":false,"fork":false,"pushed_at":"2017-12-28T16:13:07.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T11:51:18.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/wbhob.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-28T15:24:32.000Z","updated_at":"2017-12-28T16:13:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5ddbc44-426b-41bd-b0f2-ce51cbadd884","html_url":"https://github.com/wbhob/key-value","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbhob%2Fkey-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbhob%2Fkey-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbhob%2Fkey-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wbhob%2Fkey-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wbhob","download_url":"https://codeload.github.com/wbhob/key-value/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217946,"owners_count":20579300,"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-14T19:45:26.109Z","updated_at":"2025-03-24T06:17:29.540Z","avatar_url":"https://github.com/wbhob.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# key-value\nA simple utility for mapping an object to an array. This is particularly useful for iterators, which can not simply be passed an object.\n\n## Example\n```ts\nimport keyValue from 'key-value';\n\nconst object = {\n    foo: 'bar'\n};\n\nconst map = keyValue(object);\n/*\n    [{\n        key: 'foo',\n        value: 'bar'\n    }]\n*/\n```\n\n## Usage\n### TypeScript/ES6\n```ts\nimport keyValue from 'key-value';\n\nkeyValue(yourObject);\n```\n\n### ES5\n```ts\nvar keyValue = require('key-value').default;\n\nkeyValue(yourObject);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbhob%2Fkey-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwbhob%2Fkey-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwbhob%2Fkey-value/lists"}