{"id":15862046,"url":"https://github.com/afeiship/next-where","last_synced_at":"2026-05-18T11:03:18.868Z","repository":{"id":57112666,"uuid":"103365470","full_name":"afeiship/next-where","owner":"afeiship","description":"Get collection items from condition map.","archived":false,"fork":false,"pushed_at":"2020-11-22T05:41:54.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-23T23:36:16.249Z","etag":null,"topics":["condition","map","next","where"],"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}},"created_at":"2017-09-13T07:03:49.000Z","updated_at":"2020-11-22T05:41:56.000Z","dependencies_parsed_at":"2022-08-21T13:00:11.007Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/next-where","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-where","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-where","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-where/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-where/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-where/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-where/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-where/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33175835,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["condition","map","next","where"],"created_at":"2024-10-05T22:23:44.403Z","updated_at":"2026-05-18T11:03:18.795Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-where\n\u003e Get collection items from condition map.\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-where\n```\n\n## usage\n```js\nimport '@jswork/next-where';\n\nconst data = [\n  {\n    id: 67,\n    userId: 'EB1347950628',\n    goods: {\n      type: 1,\n      country: 'Panama',\n      year: 2014,\n      keywords: 'tes',\n      field: null,\n      infoNumber: 262,\n      title: '数据查询(Panama2014)',\n      price: 0.02\n    },\n    title: '数据查询(Panama2014)'\n  },\n  {\n    id: 68,\n    userId: 'EB1347950628-2',\n    goods: {\n      type: 1,\n      country: 'Panama',\n      year: 2014,\n      keywords: 'tes',\n      field: null,\n      infoNumber: 262,\n      title: '数据查询(Panama2014)',\n      price: 0.01\n    },\n    title: '数据查询(Panama2014)'\n  },\n  {\n    id: 69,\n    userId: 'EB1347950628',\n    goods: {\n      type: 2,\n      country: 'Panama',\n      year: 2015,\n      keywords: 'test',\n      field: null,\n      infoNumber: 780,\n      title: '数据查询(Panama2015)',\n      price: 0.01\n    },\n    title: '数据查询(Panama2015)'\n  }\n];\n\n\n// filter by map condition\nnx.where(data, { id: 67 });\n\n// result\n[\n  {\n    id: 67,\n    userId: 'EB1347950628',\n    goods: {\n      type: 1,\n      country: 'Panama',\n      year: 2014,\n      keywords: 'tes',\n      field: null,\n      infoNumber: 262,\n      title: '数据查询(Panama2014)',\n      price: 0.02\n    },\n    title: '数据查询(Panama2014)'\n  }\n]\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-where/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-where\n[version-url]: https://npmjs.org/package/@jswork/next-where\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-where\n[license-url]: https://github.com/afeiship/next-where/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-where\n[size-url]: https://github.com/afeiship/next-where/blob/master/dist/next-where.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-where\n[download-url]: https://www.npmjs.com/package/@jswork/next-where\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-where","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-where","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-where/lists"}