{"id":20292967,"url":"https://github.com/gemini-testing/qemitter","last_synced_at":"2026-06-07T17:31:51.101Z","repository":{"id":30567234,"uuid":"34122149","full_name":"gemini-testing/qemitter","owner":"gemini-testing","description":"EventEmitter, allowing to return promise from handlers","archived":false,"fork":false,"pushed_at":"2017-02-13T10:16:52.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-01T17:46:07.664Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gemini-testing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-17T14:47:36.000Z","updated_at":"2017-02-07T09:54:43.000Z","dependencies_parsed_at":"2022-08-03T15:14:27.931Z","dependency_job_id":null,"html_url":"https://github.com/gemini-testing/qemitter","commit_stats":null,"previous_names":["sevinf/qemitter"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gemini-testing/qemitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fqemitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fqemitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fqemitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fqemitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gemini-testing","download_url":"https://codeload.github.com/gemini-testing/qemitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gemini-testing%2Fqemitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28335226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"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-14T15:20:15.227Z","updated_at":"2026-01-12T05:45:18.436Z","avatar_url":"https://github.com/gemini-testing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# QEmitter\n\nNode.js event emitter with promises support.\n\nNode.js builtin `EventEmmiter` class executes all handlers synchronously without\nwaiting for completion of any async operations that may happen inside.\n\n`QEmitter` is the subclass of `EventEmmiter` which adds ability to return a\npromise from event handler and wait until it resolved. Just use `emitAndWait`\ninstead of `emit`:\n\n```javascript\nvar emitter = new QEmitter();\nemitter.on('event', function() {\n    return Q.delay(1000);\n});\n\nemmiter.emitAndWait('event')\n    .then(function() {\n        console.log('All handlers finished');\n    });\n```\n\n`emitAndWait` returns [`Q`](https://github.com/kriskowal/q) promise.\n\n## utils\n\n### passthroughEvent(from, to, event)\n\nPasses event from `from` to `to`.\n\n`event` can be an array of events.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Fqemitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgemini-testing%2Fqemitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgemini-testing%2Fqemitter/lists"}