{"id":20077576,"url":"https://github.com/digitaledgeit/js-emitter-on-steroids","last_synced_at":"2026-07-22T08:33:12.636Z","repository":{"id":22129289,"uuid":"25460115","full_name":"digitaledgeit/js-emitter-on-steroids","owner":"digitaledgeit","description":"Not your average emitter.","archived":false,"fork":false,"pushed_at":"2015-02-14T02:39:07.000Z","size":256,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-24T02:17:47.530Z","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":"k0shk0sh/FastHub","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digitaledgeit.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":"2014-10-20T09:45:54.000Z","updated_at":"2015-02-14T02:39:07.000Z","dependencies_parsed_at":"2022-08-20T21:40:39.353Z","dependency_job_id":null,"html_url":"https://github.com/digitaledgeit/js-emitter-on-steroids","commit_stats":null,"previous_names":["digitaledgeit/emitter-on-steroids"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/digitaledgeit/js-emitter-on-steroids","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-emitter-on-steroids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-emitter-on-steroids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-emitter-on-steroids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-emitter-on-steroids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitaledgeit","download_url":"https://codeload.github.com/digitaledgeit/js-emitter-on-steroids/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitaledgeit%2Fjs-emitter-on-steroids/sbom","scorecard":{"id":342455,"data":{"date":"2025-08-11","repo":{"name":"github.com/digitaledgeit/js-emitter-on-steroids","commit":"6fc57d6d506d2bbbe49803c8e9945117237d2a7a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"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":"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":"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":"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":"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":"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":"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-18T06:12:10.157Z","repository_id":22129289,"created_at":"2025-08-18T06:12:10.157Z","updated_at":"2025-08-18T06:12:10.157Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35755761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"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":[],"created_at":"2024-11-13T15:09:04.464Z","updated_at":"2026-07-22T08:33:12.599Z","avatar_url":"https://github.com/digitaledgeit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emitter-on-steroids\n\nNot your average emitter. An event emitter with the following features:\n\n- global listeners\n- synchronous and asynchronous listeners\n- error handling\n- formal events, stoppable events\n- works in the browser too\n\n## Example\n\n### Creating an instance\n\n\tvar emitter1 = emitter();\n\t\nor\n\t\n\tvar emitter2 = new emitter();\n\nor\n\t\n\tvar MyClass = function() {}\n\temitter(MyClass.prototype);\n\tvar emitter3 = new MyClass();\n\n### Global listeners\n\nGlobal listeners are registered with the special wildcard name and are called for every event emitted. Global listeners \nare called before regular listeners.\n\n\temitter()\n\t  .on('*', function() {\n\t    console.log('listener #1');\n\t  })\n\t  .emit('test')\n\t;\n\n### Synchronous and Asynchronous listeners\n\n\temitter()\n\t  .on('test', function() {\n        console.log('listener #1 - synchronous');\n      })\n\t  .on('test', function(done) {\n\t  \tsetTimeout(function() {\n\t  \t\tconsole.log('listener #2 - asynchronous');\n\t  \t\tdone();\n\t  \t}, 1);\n\t  })\n\t  .emit('test', function() {\n\t    //called after all listeners have finished\n\t  })\n\t;\n\n### Formal events\n\n\tvar Event = require('emitter-on-steroids/event');\n\n\temitter()\n\t  .on('test', function(event) { //the event object is passed as the first argument\n\t    console.log('listener #1');\n\t  })\n\t  .on('test', function(event, done) { //the event object is passed as the first argument\n\t    console.log('listener #2');\n\t    done();\n\t  })\n\t  .emit(Event.stoppable(new Event('test')), function(err, event) { //the event object is passed as the second argument\n\n\t  })\n\t;\n\n### Stoppable events\n\n\tvar Event = require('emitter-on-steroids/event');\n\n\temitter()\n\t  .on('test', function(event) {\n\t    console.log('listener #1');\n\t    event.stopPropagation();\n\t  })\n\t  .on('test', function() {\n\t    console.log('listener #2');\n\t  })\n\t  .emit(Event.stoppable(new Event('test')))\n\t;\n\n\n### Error Handling\n\t\n#### Synchronous\n\n\temitter()\n\t  .on('test', function() {\n\t    console.log('listener #1');\n\t    throw new Error('A test error');\n\t  })\n\t  .emit('test', function(err) {\n\t    console.log('done', err);\n\t  })\n\t;\n\n#### Asynchronous\n\n\temitter()\n\t  .on('test', function(event, done) {\n\t    console.log('listener #1');\n\t    done(new Error('A test error'));\n\t  })\n\t  .emit('test', function(err) {\n\t    console.log('done', err);\n\t  })\n\t;\n\n\n## API\n\n### EventEmitter\n\n#### EventEmitter() or new EventEmitter()\n\nCreate a new emitter instance.\n\n#### emitter(object : Object)\n\nMixin emitter methods into object.\n\n#### .on(name : String, listener : Function(Event, [done : Function()]))\n\nRegister a listener to receive notifications each time an event is emitted.\n\n#### .once(name : String, listener : Function(Event, [done : Function()]))\n\nRegister a listener to receive notifications the next time an event is emitted.\n\n#### .off(name : String, listener : Function(Event, [done : Function()]))\n\nUn-register a listener from receiving notifications each time an event is emitted.\n\n#### .emit(event : String|Event, [arg1, arg2, ...], [done : Function(Event)]))\n\nNotifies listeners that an event occurred.\n\n### Event\n\n#### .getName()\n\nGet the event name.\n\n#### .getEmitter()\n\nGet the event emitter.\n\n#### #preventable(object)\n\n- .isDefaultPreventable() - Get whether the default event action has been prevented.\n- .preventDefault() - Prevent the default event action from executing.\n\n#### #stoppable(object)\n\n- .isPropagationStopped() - Whether the event has been stopped from propagating.\n- .stopPropagation() - Stops the event from propagating.\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 James Newell\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fjs-emitter-on-steroids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitaledgeit%2Fjs-emitter-on-steroids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitaledgeit%2Fjs-emitter-on-steroids/lists"}