{"id":23545195,"url":"https://github.com/dgeibi/event-emitter","last_synced_at":"2025-07-29T06:32:55.504Z","repository":{"id":57385073,"uuid":"95731793","full_name":"dgeibi/event-emitter","owner":"dgeibi","description":"a functional event emitter","archived":false,"fork":false,"pushed_at":"2017-10-29T03:48:39.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T15:51:09.144Z","etag":null,"topics":["eventemitter"],"latest_commit_sha":null,"homepage":"","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/dgeibi.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":"2017-06-29T02:45:50.000Z","updated_at":"2017-07-17T03:24:41.000Z","dependencies_parsed_at":"2022-09-07T14:51:45.012Z","dependency_job_id":null,"html_url":"https://github.com/dgeibi/event-emitter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/dgeibi/event-emitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgeibi%2Fevent-emitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgeibi%2Fevent-emitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgeibi%2Fevent-emitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgeibi%2Fevent-emitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgeibi","download_url":"https://codeload.github.com/dgeibi/event-emitter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgeibi%2Fevent-emitter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267639569,"owners_count":24119780,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"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":["eventemitter"],"created_at":"2024-12-26T08:15:24.164Z","updated_at":"2025-07-29T06:32:55.377Z","avatar_url":"https://github.com/dgeibi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uemitter\n\n- API like [Node's EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter)\n- support `emitAsync`\n- methods don't rely on `this`\n\n## Install\n\n```\n$ npm install uemitter\n```\n\n## Usage\n\n``` js\nimport Emitter from 'uemitter';\n// or // const Emitter = require('uemitter');\n\nconst emitter = Emitter();\n\n// listen to an event\nemitter.once('foo', async () =\u003e {\n  const data = await fetch('example.com/foo.json').then(res =\u003e res.json());\n  // do something with data\n});\n\n(async () =\u003e {\n  // emit an event\n  await emitter.emitAsync('foo');\n})();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgeibi%2Fevent-emitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgeibi%2Fevent-emitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgeibi%2Fevent-emitter/lists"}