{"id":23159199,"url":"https://github.com/deno-library/events","last_synced_at":"2025-08-18T02:31:02.461Z","repository":{"id":43082711,"uuid":"271971288","full_name":"deno-library/events","owner":"deno-library","description":"EventEmitter for deno","archived":false,"fork":false,"pushed_at":"2020-06-16T02:28:57.000Z","size":7,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T06:26:22.811Z","etag":null,"topics":["deno","eventemitter"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/deno-library.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":"2020-06-13T08:37:24.000Z","updated_at":"2024-05-27T02:48:20.000Z","dependencies_parsed_at":"2022-09-19T17:44:22.918Z","dependency_job_id":null,"html_url":"https://github.com/deno-library/events","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/deno-library/events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-library%2Fevents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-library%2Fevents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-library%2Fevents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-library%2Fevents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deno-library","download_url":"https://codeload.github.com/deno-library/events/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deno-library%2Fevents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270933523,"owners_count":24670428,"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-08-18T02:00:08.743Z","response_time":89,"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":["deno","eventemitter"],"created_at":"2024-12-17T22:32:40.947Z","updated_at":"2025-08-18T02:31:02.113Z","avatar_url":"https://github.com/deno-library.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EventEmitter\nEventEmitter for deno, API is the same as Nodejs, Have all the APIs of nodejs\n\nRefer to [nodejs events documentation](https://nodejs.org/dist/latest-v12.x/docs/api/events.html#events_class_eventemitter)\n\n## Useage\n```ts\nimport EventEmitter from \"https://deno.land/x/events@v1.0.0/mod.ts\";\n\nconst ee = new EventEmitter();\nee.on(\"message\", msg =\u003e {\n  console.log(msg);\n});\nemitter.emit(\"message\");\n```  \nextends\n```ts  \nimport EventEmitter from \"https://deno.land/x/events@v1.0.0/mod.ts\";\n\nclass A extends EventEmitter {}\nconst a = new A();\na.on(\"message\", msg =\u003e {\n  console.log(msg);\n});\na.emit(\"message\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeno-library%2Fevents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeno-library%2Fevents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeno-library%2Fevents/lists"}