{"id":20676123,"url":"https://github.com/sammwyy/ehdeno","last_synced_at":"2026-04-22T06:03:32.195Z","repository":{"id":122454576,"uuid":"239836833","full_name":"sammwyy/ehDeno","owner":"sammwyy","description":"An easy to use Event Handler for Deno","archived":false,"fork":false,"pushed_at":"2020-03-10T17:32:07.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T14:39:26.194Z","etag":null,"topics":["deno","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sammwyy.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-11T18:40:38.000Z","updated_at":"2024-04-06T19:52:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cbb88b0-68f9-4bba-96b2-367948ee5e18","html_url":"https://github.com/sammwyy/ehDeno","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sammwyy/ehDeno","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FehDeno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FehDeno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FehDeno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FehDeno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sammwyy","download_url":"https://codeload.github.com/sammwyy/ehDeno/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sammwyy%2FehDeno/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32123604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"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","typescript"],"created_at":"2024-11-16T21:11:53.626Z","updated_at":"2026-04-22T06:03:32.162Z","avatar_url":"https://github.com/sammwyy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ehDeno\nA small and easy to use Event Handler for Deno.\n\n## How to use:\n```typescript\n// Import the library\nimport { EventHandler } from 'https://raw.githubusercontent.com/sammwyy/ehDeno/master/ehdeno.ts';\n\n// Instantiate EventHandler\nconst events = new EventHandler();\n```\n\n## Functions:\n### on\n**Description:** Use this function to register an event and add a callback function that will be executed when calling that event.  \n**Returns:** Void  \n**Example**  \n```typescript\nevents.on(\"saysHelloWorld\", () =\u003e {\n    console.log(\"Hello World\");\n})\n```\n\n\n### emit\n**Description:** Use this function to execute all callbacks of an event.  \n**Returns:** Void  \n**Example**  \n```typescript\nevents.emit(\"saysHelloWorld\");\n```\n\n\n### clear\n**Description:** Use this function to clear the callbacks list of an event.  \n**Returns:** Void  \n**Example**  \n```typescript\nevents.clear(\"saysHelloWorld\");\n```\n\n\n### clearAll\n**Description:** Use this function to clear the callbacks list of all events.  \n**Returns:** Void  \n**Example**  \n```typescript\nevents.clearAll();\n```\n\n\n### get\n**Description:** This function returns a list with the callbacks of an event.  \n**Example**  \n**Returns:** List  \n```typescript\nevents.get(\"saysHelloWorld\");\n```\n\n\n### list\n**Description:** This function returns a list of all handled events.  \n**Returns:** List  \n**Example**  \n```typescript\nevents.clearAll();\n```\n\n\n### count\n**Description:** This function returns the count of handled events.  \n**Returns:** Number  \n**Example**  \n```typescript\nevents.clearAll();\n```\n\n\n### hasHandled\n**Description:** This function returns `true` if the event is handled, otherwise returns `false`.  \n**Returns:** List  \n**Example:**  \n```typescript\nevents.hasHandled(\"saysHelloWorld\");\n```\n\n###### Made with ❤️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammwyy%2Fehdeno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsammwyy%2Fehdeno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsammwyy%2Fehdeno/lists"}