{"id":41357702,"url":"https://github.com/xfoxawy/eventbusjs","last_synced_at":"2026-01-23T07:42:59.280Z","repository":{"id":57361296,"uuid":"156334140","full_name":"xfoxawy/eventbusjs","owner":"xfoxawy","description":"Simple Pub/Sub Event Bus as mediator pattern","archived":false,"fork":false,"pushed_at":"2019-06-02T04:52:41.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-17T01:58:18.774Z","etag":null,"topics":["javascript","mediator","mediator-pattern","pub","pubsub"],"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/xfoxawy.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":"2018-11-06T06:06:02.000Z","updated_at":"2023-03-05T03:01:31.000Z","dependencies_parsed_at":"2022-09-26T16:40:56.572Z","dependency_job_id":null,"html_url":"https://github.com/xfoxawy/eventbusjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xfoxawy/eventbusjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfoxawy%2Feventbusjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfoxawy%2Feventbusjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfoxawy%2Feventbusjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfoxawy%2Feventbusjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xfoxawy","download_url":"https://codeload.github.com/xfoxawy/eventbusjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xfoxawy%2Feventbusjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28683996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: 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":["javascript","mediator","mediator-pattern","pub","pubsub"],"created_at":"2026-01-23T07:42:56.501Z","updated_at":"2026-01-23T07:42:59.262Z","avatar_url":"https://github.com/xfoxawy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SimpleEventBusJs\nSimple Pub/Sub Event Bus as mediator pattern, it can be used as mediator module to communicate between different modules, its easy to use.\nInspired by Laravel EventBus\n\n### Installation\n\n    npm install simpleeventbusjs\n\n### Usage\n\n \n\n - Import `var EventBus = require('simpleeventbusjs');`\n - create new instance `let eb = new EventBus();`\n - Subscribe to a channel `eb.subscribeToChannel('test_channel', my_cb)`\n - Subscribe to specific event on a channel `eb.subscribeToEvent('test_channel', 'test_event', my_cb)`\n - Subscribe to all events from all channels `eb.subscribeToChannel('*', my_cb)`.\n - Push events  `eb.pushEvent('test_channel', 'test_event', {data : 'success'})` and it will automatically invoke subscribed callbacks.\n - \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfoxawy%2Feventbusjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxfoxawy%2Feventbusjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxfoxawy%2Feventbusjs/lists"}