{"id":49566519,"url":"https://github.com/powerbot15/event-dispatcher","last_synced_at":"2026-05-03T11:48:47.365Z","repository":{"id":57231380,"uuid":"52684137","full_name":"powerbot15/event-dispatcher","owner":"powerbot15","description":"Simple javascript events dispatcher with the jQuery like listeners notation","archived":false,"fork":false,"pushed_at":"2016-12-21T15:02:04.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-03T11:48:36.956Z","etag":null,"topics":["custom-events","events-dispatcher","javascript-events"],"latest_commit_sha":null,"homepage":"","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/powerbot15.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-02-27T19:16:11.000Z","updated_at":"2018-03-27T22:59:43.000Z","dependencies_parsed_at":"2022-09-26T16:31:06.519Z","dependency_job_id":null,"html_url":"https://github.com/powerbot15/event-dispatcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/powerbot15/event-dispatcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerbot15%2Fevent-dispatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerbot15%2Fevent-dispatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerbot15%2Fevent-dispatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerbot15%2Fevent-dispatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powerbot15","download_url":"https://codeload.github.com/powerbot15/event-dispatcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerbot15%2Fevent-dispatcher/sbom","scorecard":{"id":742425,"data":{"date":"2025-08-11","repo":{"name":"github.com/powerbot15/event-dispatcher","commit":"4be1db6058479f753c85c566ac63b88079b2a8f8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-22T17:48:42.518Z","repository_id":57231380,"created_at":"2025-08-22T17:48:42.518Z","updated_at":"2025-08-22T17:48:42.518Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32568036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":["custom-events","events-dispatcher","javascript-events"],"created_at":"2026-05-03T11:48:44.939Z","updated_at":"2026-05-03T11:48:47.355Z","avatar_url":"https://github.com/powerbot15.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Events Dispatcher\n\n## Easy handling of the custom logical events\n \n\n Event dispatcher is a lightweight javascript module for custom events handling in **frontend javascript applications**.\n\n \n### Installation\n\nIn the project directory:\n\n```\nnpm install events-dispatcher\n```\n\n### Usage:\n\n#### HTML:\n\nFill free to change module path for your own project structure\n```HTML\n\u003cscript src=\"/node_modules/events-dispatcher/events-dispatcher.js\"\u003e\u003c/script\u003e\n```\n#### JavaScript:\n\n```javascript\nvar dispatcher = new EventsDispatcher();\n```\n\n### Interface\n\n **Events dispatcher uses jQuery like events handling notation BUT enables you to pass a custom context to callbacks as `this`**\n \n **_Notice:_** _when_ `context` _is not defined, dispatcher passes_ `window` _or_ `global` _as context to callbacks_\n\n___\n\n```javascript\n    dispatcher.on( eventName, callback [, context] )\n```\n\n ```eventName``` - Space separated string with events' names ```'eventA eventB eventC'``` to be listened \n ```callback``` - Callback to be fired when event triggered\n ```context``` - Not required argument to be a context of the fired event callback \n\n___\n\n```javascript\n    dispatcher.once( eventName, callback [, context] )\n```\n\n \n Same as `dispatcher.on()` method but attached callbacks will be fired only once and then destroyed\n \n___\n\n```javascript\n    dispatcher.deBouncedOn(delay, eventName, callback [, context]);\n```\n\n `deBouncedOn` method allows attach to event debounced callbacks. Such callback will be fired only if within `delay` in milliseconds listened `event` was not fired. If event was fired during the delay, timer refreshed and callback waiting when same delay will finish \n\n `delay` - Delay in milliseconds to wait for event firings\n `eventName` - Space separated string with events' names `'eventA eventB eventC'` to be listened \n `callback` - Callback to be fired after `delay` time from the moment event triggered\n `context` - Not required argument to be a context of the fired event callback  \n\n___\n\n```javascript\n    dispatcher.off(eventName [, callback]);\n```\n\n `eventName` - Space separated string with events' names `'eventA eventB eventC'`, which callbacks will be removed\n `callback` - callback function to detach from event callbacks, if not passed, all callbacks of the event will be removed\n\n___\n   \n```javascript\n    dispatcher.trigger(eventName [, dataArg1, ... ,  dataArgN]);\n```\n\n `trigger()` method fires all attached to event callbacks and debounced callbacks \n\n `eventName` - Space separated string with events' names `'eventA eventB eventC'` to be listened \n `dataArg1-dataArgN` - Comma-separated data objects(arrays) to pass as parameters to event callbacks\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerbot15%2Fevent-dispatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowerbot15%2Fevent-dispatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerbot15%2Fevent-dispatcher/lists"}