{"id":20743092,"url":"https://github.com/aimingoo/events","last_synced_at":"2025-08-27T09:42:01.981Z","repository":{"id":36359630,"uuid":"40664420","full_name":"aimingoo/Events","owner":"aimingoo","description":"Multi-cast events in Lua, very Simple and Fast.","archived":false,"fork":false,"pushed_at":"2015-08-13T14:52:19.000Z","size":104,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-07T11:16:16.753Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aimingoo.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-08-13T14:52:09.000Z","updated_at":"2020-12-23T01:09:48.000Z","dependencies_parsed_at":"2022-07-29T00:19:04.334Z","dependency_job_id":null,"html_url":"https://github.com/aimingoo/Events","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aimingoo/Events","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2FEvents","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2FEvents/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2FEvents/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2FEvents/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aimingoo","download_url":"https://codeload.github.com/aimingoo/Events/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aimingoo%2FEvents/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272315574,"owners_count":24912600,"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-27T02:00:09.397Z","response_time":76,"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-17T07:09:03.129Z","updated_at":"2025-08-27T09:41:57.906Z","avatar_url":"https://github.com/aimingoo.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Events\nThe multi-cast events in lua. it's very Simple, Fast and compatible any lua runtime. support features:\n- multi-event single Events instance\n- multi-handle single event\n- events concat/merge\n- cache initialized event anywhere\n- exception mute/catch\n- e.on(\"EventName\", func) syntax, or e(\"EventName\", func)\n\n# Install \u0026 Usage\ndownload the Events.lua file and put into lua search path or current directory.\n\nload it as a file module from lua. use Events.new() get a multi-event instance.\n```lua\nlocal e = require('Events')\n\n-- init event 'Begin', with first handle\ne.on(\"Begin\", function()\n\t..\nend)\n\n-- fire\ne.Begin()\n```\n\n# More examples\n```lua\n-- (next...)\n\n-- more events, ex: \"End\"\ne.on(\"End\", function(x)\n\t..\nend)\n\n-- more handles of event 'Begin'\ne.on(\"Begin\", function()\n\t..\nend)\n\n-- fire all handles once call\ne.Begin()\n\n-- pass arg/arguments to event, ex: 'x' arg of \"End\" event\ne.End('abcd')\n\n-- new Begin2 event\ne.on(\"Begin2\", function()\n\t..\nend)\n\n-- concat \"Begin\" and \"Begin2\"\n--\t*) will append Begin2 to Begin\ne.on(\"Begin\", e.Begin2)\n\n-- fire all handles in Begin and Begin2\ne.Begin()\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimingoo%2Fevents","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faimingoo%2Fevents","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faimingoo%2Fevents/lists"}