{"id":15155348,"url":"https://github.com/afeiship/next-pick-pairs","last_synced_at":"2026-01-20T19:32:19.848Z","repository":{"id":57122783,"uuid":"107495666","full_name":"afeiship/next-pick-pairs","owner":"afeiship","description":"Pick key/value pairs from object.","archived":false,"fork":false,"pushed_at":"2020-11-22T07:26:59.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-22T08:37:46.359Z","etag":null,"topics":["next","object","pairs","pick"],"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/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}},"created_at":"2017-10-19T03:50:43.000Z","updated_at":"2020-11-22T07:27:01.000Z","dependencies_parsed_at":"2022-08-25T17:11:09.643Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-pick-pairs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-pick-pairs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pick-pairs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pick-pairs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pick-pairs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pick-pairs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-pick-pairs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-pick-pairs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28610608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T18:56:40.769Z","status":"ssl_error","status_checked_at":"2026-01-20T18:54:26.653Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["next","object","pairs","pick"],"created_at":"2024-09-26T18:20:29.571Z","updated_at":"2026-01-20T19:32:19.828Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-pick-pairs\n\u003e Pick key/value pairs from object.\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```bash\nnpm install -S @jswork/next-pick-pairs\n```\n\n## usage\n```js\nimport '@jswork/next-pick-pairs';\n\nconst obj = {\n  \"nickname\": null,\n  \"uid\": \"UR1785049326\",\n  \"job\": null,\n  \"last_name\": null,\n  \"username\": \"15502115100\",\n  \"last_active\": \"2017-09-22T13:08:04.753046Z\",\n  \"is_staff\": false,\n  \"login_count\": 5,\n  \"gender\": null,\n  \"is_active\": true,\n  \"groups\": [],\n  \"company\": null,\n  \"is_superuser\": false,\n  \"first_name\": null,\n  \"last_login\": \"2017-09-22T13:08:04.753038Z\",\n  \"permissions\": [],\n  \"date_joined\": \"2017-09-19T14:13:10.129030Z\",\n  \"email\": 'test@email.com',\n  \"phone\": \"15502115100\"\n};\n\nconst res = nx.pickPairs(obj,['nickname','is_staff','email']);\n\n//result:\n[ { key: 'nickname', value: null },\n  { key: 'is_staff', value: false },\n  { key: 'email', value: 'test@email.com' } ]\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-pick-pairs/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-pick-pairs\n[version-url]: https://npmjs.org/package/@jswork/next-pick-pairs\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-pick-pairs\n[license-url]: https://github.com/afeiship/next-pick-pairs/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-pick-pairs\n[size-url]: https://github.com/afeiship/next-pick-pairs/blob/master/dist/next-pick-pairs.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-pick-pairs\n[download-url]: https://www.npmjs.com/package/@jswork/next-pick-pairs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-pick-pairs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-pick-pairs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-pick-pairs/lists"}