{"id":13515391,"url":"https://github.com/jetradar/dispatcher","last_synced_at":"2026-02-25T05:53:56.085Z","repository":{"id":57212959,"uuid":"50093156","full_name":"jetradar/dispatcher","owner":"jetradar","description":"extremely simple blazing-fast pure javascript publisher-subscriber","archived":false,"fork":false,"pushed_at":"2016-01-21T11:34:14.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T11:40:05.092Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jetradar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-21T08:27:02.000Z","updated_at":"2025-03-12T13:37:12.000Z","dependencies_parsed_at":"2022-08-24T21:01:29.148Z","dependency_job_id":null,"html_url":"https://github.com/jetradar/dispatcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetradar%2Fdispatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetradar%2Fdispatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetradar%2Fdispatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jetradar%2Fdispatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jetradar","download_url":"https://codeload.github.com/jetradar/dispatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418657,"owners_count":20773934,"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","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":[],"created_at":"2024-08-01T05:01:10.669Z","updated_at":"2026-02-25T05:53:56.030Z","avatar_url":"https://github.com/jetradar.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# dispatcher\nextremely simple blazing-fast pure javascript publisher-subscriber\n\n## Installation\n`npm install @jetradar/dispatcher --save`\n\n## Examples\n```javascript\nimport dispatcher from '@jetradar/dispatcher';\n\ndispatcher.on('beer', (eventName, data) =\u003e {\n  console.log(data.isDraught);\n…\n}\n\ndispatcher.send('beer', {\n  isDraught: true\n});\n\ndispatcher.trigger('beer', {\n  isDraught: false\n});\n\n// true\n// false\n\n```\n\n## API Reference\n\n`dispatcher.on(eventName, handler)` — subscribes handler to eventName\n\n`dispatcher.trigger(eventName, payload)` or `dispatcher.send(eventName, payload)` — Fires `eventName` event to all\n\n`dispatcher.all(handler)` or `dispatcher.on('*', handler)` — subscribes for all the events being fired\n\n`dispatcher.off(eventName)` — removes eventName from events list\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetradar%2Fdispatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetradar%2Fdispatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetradar%2Fdispatcher/lists"}