{"id":17050446,"url":"https://github.com/eush77/object-pairs","last_synced_at":"2025-08-14T04:12:05.198Z","repository":{"id":24536232,"uuid":"27942654","full_name":"eush77/object-pairs","owner":"eush77","description":"Object -\u003e [[key0, value0], [key1, value1]...]","archived":false,"fork":false,"pushed_at":"2015-05-25T18:35:50.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T17:40:17.313Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/eush77.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":"2014-12-12T23:37:06.000Z","updated_at":"2019-07-15T20:56:52.000Z","dependencies_parsed_at":"2022-09-20T23:03:20.520Z","dependency_job_id":null,"html_url":"https://github.com/eush77/object-pairs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/eush77/object-pairs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eush77%2Fobject-pairs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eush77%2Fobject-pairs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eush77%2Fobject-pairs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eush77%2Fobject-pairs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eush77","download_url":"https://codeload.github.com/eush77/object-pairs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eush77%2Fobject-pairs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270359624,"owners_count":24570522,"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-14T02:00:10.309Z","response_time":75,"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-14T09:56:53.818Z","updated_at":"2025-08-14T04:12:05.136Z","avatar_url":"https://github.com/eush77.png","language":"JavaScript","readme":"# object-pairs [![Build Status][travis-badge]][travis] [![Dependency Status][david-badge]][david]\n\n[![npm](https://nodei.co/npm/object-pairs.png)](https://nodei.co/npm/object-pairs/)\n\n[travis]: https://travis-ci.org/eush77/object-pairs\n[travis-badge]: https://travis-ci.org/eush77/object-pairs.svg\n[david]: https://david-dm.org/eush77/object-pairs\n[david-badge]: https://david-dm.org/eush77/object-pairs.png\n\nTurn an object into list of `[key, value]` pairs for mapping, iterating or other purposes.\n\n## Example\n\n```js\n\u003e pairs = require('object-pairs')\n[Function]\n\u003e pairs({ foo: 2, bar: 4 })\n[ [ 'foo', 2 ],\n  [ 'bar', 4 ] ]\n```\n\n## API\n\n### `pairs(obj)`\n\nReturn list of key-value pairs.\n\n## See also\n\n- [zipmap] for the opposite transformation.\n\n[zipmap]: https://github.com/landau/zipmap\n\n## Install\n\n```shell\nnpm install object-pairs\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":["模块","Modules"],"sub_categories":["对象","Object"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feush77%2Fobject-pairs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feush77%2Fobject-pairs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feush77%2Fobject-pairs/lists"}