{"id":16349513,"url":"https://github.com/jednano/bind-action-creators","last_synced_at":"2026-01-15T22:16:17.650Z","repository":{"id":36473602,"uuid":"227174081","full_name":"jednano/bind-action-creators","owner":"jednano","description":"Turns an object whose values are action creators, into an object with the same keys, but with every action creator wrapped into a dispatch call so they may be invoked directly.","archived":false,"fork":false,"pushed_at":"2023-01-04T13:34:52.000Z","size":2041,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T02:31:15.837Z","etag":null,"topics":["actions","dispatch","react","redux","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/jednano.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","contributing":"contributing.md","funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-10T17:07:55.000Z","updated_at":"2023-03-17T12:20:54.000Z","dependencies_parsed_at":"2023-01-17T01:49:30.077Z","dependency_job_id":null,"html_url":"https://github.com/jednano/bind-action-creators","commit_stats":null,"previous_names":["jedmao/bind-action-creators"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jednano/bind-action-creators","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fbind-action-creators","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fbind-action-creators/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fbind-action-creators/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fbind-action-creators/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jednano","download_url":"https://codeload.github.com/jednano/bind-action-creators/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jednano%2Fbind-action-creators/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28472624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T22:13:38.078Z","status":"ssl_error","status_checked_at":"2026-01-15T22:12:11.737Z","response_time":62,"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":["actions","dispatch","react","redux","typescript"],"created_at":"2024-10-11T01:00:07.209Z","updated_at":"2026-01-15T22:16:17.635Z","avatar_url":"https://github.com/jednano.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bind-action-creators\n\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n[![GitHub Actions](https://github.com/jedmao/bind-action-creators/workflows/Node%20CI/badge.svg?event=push)](https://github.com/jedmao/bind-action-creators/actions)\n[![codecov](https://img.shields.io/codecov/c/gh/jedmao/bind-action-creators?style=flat-square)](https://codecov.io/gh/jedmao/bind-action-creators)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](http://commitizen.github.io/cz-cli/)\n[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/xojs/xo)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![types: TypeScript](https://img.shields.io/npm/types/typescript?style=flat-square)](https://typescriptlang.org)\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- markdownlint-disable commands-show-output --\u003e\n\nTurns an object whose values are action creators, into an object with the same\nkeys, but with every action creator wrapped into a dispatch call so they may be\ninvoked directly.\n\n## Installation\n\n```bash\nnpm install bind-action-creators\n```\n\n## Usage\n\n```ts\nimport bindActionCreators = require('bind-action-creators')\n\nconst actionCreators = {\n  fetchFoo: dispatch =\u003e Promise.resolve([]),\n  fetchBar: dispatch =\u003e Promise.resolve([]),\n}\n\nconst bound = bindActionCreators(actionCreators /*, dispatch */)\n```\n\n## Scripts\n\nThe following [npm scripts](https://docs.npmjs.com/misc/scripts) are made\navailable to you in the project root. You can run each of them with\n`npm run \u003cscript-name\u003e`.\n\n### build\n\nRuns the [TypeScript][] compiler.\n\n### test\n\nRuns [AVA][] in\n[watch mode](https://github.com/avajs/ava/blob/master/docs/recipes/watch-mode.md),\nwhich attempts to run only on changed files.\n\n### cover\n\nRuns [AVA][] with\n[coverage](https://github.com/avajs/ava/blob/master/docs/recipes/code-coverage.md),\ndumping coverage results in `./coverage` and showing a text summary in the\nconsole output.\n\n### commit\n\nRuns [Commitizen](http://commitizen.github.io/cz-cli/) commit wizard, ensuring\nthat your commit messages conform to\n[Conventional Commits](https://www.conventionalcommits.org/).\n\n### Tips\n\nUse the [`git commit`](https://git-scm.com/docs/git-commit) command directly\nwith the\n[`-n`, `--no-verify` option](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt--n)\nto bypasses the pre-commit and commit-msg hooks.\n\n[ava]: https://github.com/avajs/ava\n[typescript]: http://www.typescriptlang.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fbind-action-creators","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjednano%2Fbind-action-creators","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjednano%2Fbind-action-creators/lists"}