{"id":15862235,"url":"https://github.com/afeiship/reduce-fns","last_synced_at":"2025-08-22T08:09:52.139Z","repository":{"id":57123022,"uuid":"99572197","full_name":"afeiship/reduce-fns","owner":"afeiship","description":"Generate the reduceable function.","archived":false,"fork":false,"pushed_at":"2021-11-24T15:28:36.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-18T13:27:36.800Z","etag":null,"topics":["fns","reduce"],"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-08-07T11:45:05.000Z","updated_at":"2021-11-24T15:28:39.000Z","dependencies_parsed_at":"2022-08-24T14:59:33.347Z","dependency_job_id":null,"html_url":"https://github.com/afeiship/reduce-fns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/afeiship/reduce-fns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freduce-fns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freduce-fns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freduce-fns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freduce-fns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/afeiship","download_url":"https://codeload.github.com/afeiship/reduce-fns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/afeiship%2Freduce-fns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271606595,"owners_count":24788979,"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-22T02:00:08.480Z","response_time":65,"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":["fns","reduce"],"created_at":"2024-10-05T22:25:48.447Z","updated_at":"2025-08-22T08:09:52.114Z","avatar_url":"https://github.com/afeiship.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reduce-fns\n\u003e Generate the reduceable function.\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```shell\nnpm install @jswork/reduce-fns\n```\n\n## usage\n```js\nimport reduceFns from '@jswork/reduce-fns';\n\nconst sum = (a, b) =\u003e a + b;\nconst mul = (a, b) =\u003e a * b;\nconst sumAll = reduceFns(\n  () =\u003e 0,\n  (args) =\u003e args[0],\n  sum\n);\nconst mulAll = reduceFns(\n  () =\u003e 1,\n  (args) =\u003e args[0],\n  mul\n);\n\nconsole.log(sumAll(1, 2, 3))          // 6\nconsole.log(mulAll(1, 2, 3, 4, 5))    // 120\n```\n\n## license\nCode released under [the MIT license](https://github.com/afeiship/reduce-fns/blob/master/LICENSE.txt).\n\n[version-image]: https://img.shields.io/npm/v/@jswork/reduce-fns\n[version-url]: https://npmjs.org/package/@jswork/reduce-fns\n\n[license-image]: https://img.shields.io/npm/l/@jswork/reduce-fns\n[license-url]: https://github.com/afeiship/reduce-fns/blob/master/LICENSE.txt\n\n[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/reduce-fns\n[size-url]: https://github.com/afeiship/reduce-fns/blob/master/dist/reduce-fns.min.js\n\n[download-image]: https://img.shields.io/npm/dm/@jswork/reduce-fns\n[download-url]: https://www.npmjs.com/package/@jswork/reduce-fns\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freduce-fns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafeiship%2Freduce-fns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafeiship%2Freduce-fns/lists"}