{"id":19663822,"url":"https://github.com/elliothux/eventproxy","last_synced_at":"2026-04-12T23:05:36.728Z","repository":{"id":57231249,"uuid":"121022509","full_name":"elliothux/EventProxy","owner":"elliothux","description":"🍺 A ease-to-use event proxy within 1.5KB","archived":false,"fork":false,"pushed_at":"2018-03-17T04:57:31.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-26T12:57:15.458Z","etag":null,"topics":["eventemitter","eventproxy","js","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/elliothux.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":"2018-02-10T14:31:57.000Z","updated_at":"2018-03-22T12:21:55.000Z","dependencies_parsed_at":"2022-09-12T17:00:22.534Z","dependency_job_id":null,"html_url":"https://github.com/elliothux/EventProxy","commit_stats":null,"previous_names":["huqingyang/eventproxy","elliothux/eventproxy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elliothux/EventProxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliothux%2FEventProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliothux%2FEventProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliothux%2FEventProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliothux%2FEventProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elliothux","download_url":"https://codeload.github.com/elliothux/EventProxy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elliothux%2FEventProxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285704833,"owners_count":27217837,"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-11-21T02:00:06.175Z","response_time":61,"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","eventproxy","js","nodejs"],"created_at":"2024-11-11T16:15:47.273Z","updated_at":"2025-11-21T23:02:45.966Z","avatar_url":"https://github.com/elliothux.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A ease-to-use event proxy within 1.5KB\n\n## Install\n`npm install event-proxy.js`\n\n## Basic Usage\n\n```js\nimport EventProxy from 'event-proxy.js';\nconst event = new EventProxy();\n\nconst sayHello = (name) =\u003e console.log(`Hello ${name}`);\nevent.on('hello', sayHello);\nevent.emit('hello', 'Joe');     // Log \"Hello Joe\"\nevent.cancel('hello', sayHello);\nevent.emit('hello', 'Joe');     // Nothing Happened\n\nevent.once('hello', sayHello);\nevent.emit('hello', 'Joe');     // Log \"Hello Joe\"\nevent.emit('hello', 'Joe');     // Nothing Happened\n```\n\n## API\n\n* **on(eventName, handler)**: Add an event Listener\n* **once(eventName, handler)**: Add a disposable event Listener\n* **emit(eventName, [...args])**: Trigger an event\n* **cancel(eventName, handler)**: Remove the handler of the event\n* **cancelOnce(eventName, handler)**: Remove the disposable handler of the event\n* **cancelAll(eventName)**: Remove all handlers of the event\n* **cancelAllOnce(eventName)**: Remove all disposable handlers of the event\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliothux%2Feventproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felliothux%2Feventproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliothux%2Feventproxy/lists"}