{"id":23053375,"url":"https://github.com/component/event","last_synced_at":"2025-08-15T03:32:35.672Z","repository":{"id":4553844,"uuid":"5694722","full_name":"component/event","owner":"component","description":"Event binding component","archived":false,"fork":false,"pushed_at":"2022-12-29T17:00:28.000Z","size":14,"stargazers_count":37,"open_issues_count":2,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-09T03:33:09.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/component.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2012-09-05T22:54:43.000Z","updated_at":"2023-11-17T18:29:47.000Z","dependencies_parsed_at":"2023-01-13T13:15:11.660Z","dependency_job_id":null,"html_url":"https://github.com/component/event","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/component/event","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fevent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fevent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fevent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fevent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/component","download_url":"https://codeload.github.com/component/event/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/component%2Fevent/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269688087,"owners_count":24459403,"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-10T02:00:08.965Z","response_time":71,"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-12-16T00:17:52.332Z","updated_at":"2025-08-15T03:32:35.372Z","avatar_url":"https://github.com/component.png","language":"JavaScript","readme":"\n# event\n\n  Element event binding component.\n\n## Installation\n\n    $ component install component/event\n\n## Example\n\n```js\nvar events = require('event');\nvar a = document.querySelector('a');\n\nfunction onclick(e) {\n  e.preventDefault();\n  console.log(e.target);\n  events.unbind(a, 'click', onclick);\n}\n\nevents.bind(a, 'click', onclick);\n```\n\n## API\n\n### .bind(el, type, callback, [capture])\n\n  Bind to `el`'s event `type` with `callback`,\n  returns the `callback` passed.\n\n### .unbind(el, type, callback, [capture])\n\n  Unbind `el`'s event `type` `callback`,\n  returns the `callback` passed.\n\n## License\n\n  MIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fevent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomponent%2Fevent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomponent%2Fevent/lists"}