{"id":15836965,"url":"https://github.com/afeiship/next-group-by","last_synced_at":"2026-04-17T01:02:10.736Z","repository":{"id":57122745,"uuid":"105980378","full_name":"afeiship/next-group-by","owner":"afeiship","description":"Creates an object composed of keys generated from the results of running each element of collection thru iteratee. ","archived":false,"fork":false,"pushed_at":"2024-07-31T12:05:46.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T22:38:27.969Z","etag":null,"topics":["computed","group","group-by","next","stat","total"],"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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-06T07:57:16.000Z","updated_at":"2024-07-31T12:05:50.000Z","dependencies_parsed_at":"2024-05-30T06:10:24.027Z","dependency_job_id":"9d57b4be-cac1-421f-a52a-5d3c4c58837f","html_url":"https://github.com/afeiship/next-group-by","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/next-group-by","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-group-by","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-group-by/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-group-by/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-group-by/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/next-group-by/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Fnext-group-by/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31910585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"ssl_error","status_checked_at":"2026-04-16T18:21:47.142Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["computed","group","group-by","next","stat","total"],"created_at":"2024-10-05T15:20:20.077Z","updated_at":"2026-04-17T01:02:10.677Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# next-group-by\n\u003e Creates an object composed of keys generated from the results of running each element of collection thru iteratee.\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-group-by\n```\n\n## usage\n```js\nimport '@jswork/next-group-by';\n\nconst arr = [\n  'sljflsdjf.jpg',\n  'bb.jpg',\n  'bc.jpg',\n  'ccsdf.jpg',\n  'ccsdf.jpg',\n  'http://www.agc.cn/1.jpg',\n  'sldjfsld.jpg',\n  'wx://localResource'\n];\n\nconst res = nx.groupBy(arr, (item) =\u003e {\n  var rs = item.split('://');\n  return rs.length === 2 ? rs[0] : 'normal';\n});\n\n// result\n{\n  normal: [\n    'sljflsdjf.jpg',\n    'bb.jpg',\n    'bc.jpg',\n    'ccsdf.jpg',\n    'ccsdf.jpg',\n    'sldjfsld.jpg'\n  ],\n  http: [ 'http://www.agc.cn/1.jpg' ],\n  wx: [ 'wx://localResource' ],\n  __computed__: {\n    normal: 6,\n    http: 1,\n    wx: 1\n  }\n}\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/next-group-by/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/next-group-by\n[version-url]: https://npmjs.org/package/@jswork/next-group-by\n\n[license-image]: https://img.shields.io/npm/l/@jswork/next-group-by\n[license-url]: https://github.com/afeiship/next-group-by/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-group-by\n[size-url]: https://github.com/afeiship/next-group-by/blob/master/dist/next-group-by.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/next-group-by\n[download-url]: https://www.npmjs.com/package/@jswork/next-group-by\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-group-by","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Fnext-group-by","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Fnext-group-by/lists"}