{"id":19849639,"url":"https://github.com/ckpack/event","last_synced_at":"2026-06-11T00:31:08.722Z","repository":{"id":140845338,"uuid":"342150463","full_name":"ckpack/event","owner":"ckpack","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-30T11:04:20.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T23:10:53.466Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/ckpack.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":"2021-02-25T06:48:54.000Z","updated_at":"2021-06-30T11:05:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"872800f7-27ec-4c37-94d9-abc47dd6d727","html_url":"https://github.com/ckpack/event","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ckpack/event","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckpack%2Fevent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckpack%2Fevent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckpack%2Fevent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckpack%2Fevent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ckpack","download_url":"https://codeload.github.com/ckpack/event/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ckpack%2Fevent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34177445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","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":[],"created_at":"2024-11-12T13:22:22.251Z","updated_at":"2026-06-11T00:31:08.693Z","avatar_url":"https://github.com/ckpack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# event\n绑定事件，同步|异步触发事件\n\n# example\n```javascript\nlet Event = require('event');\nlet myEvent = new Event();\n\nmyEvent.on('say', async () =\u003e {\n    await timeout(100)\n});\nmyEvent.on('say', ()=\u003e{\n    console.log('hello')\n});\n\n// 异步触发\nmyEvent.emit('say');\n\n// 按照监听器注册的顺序触发\nmyEvent.emitSync('say');\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckpack%2Fevent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fckpack%2Fevent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fckpack%2Fevent/lists"}