{"id":16548830,"url":"https://github.com/lencioni/consolidated-events","last_synced_at":"2025-05-08T00:40:01.832Z","repository":{"id":57206169,"uuid":"72685710","full_name":"lencioni/consolidated-events","owner":"lencioni","description":"Manage multiple event handlers using few event listeners","archived":false,"fork":false,"pushed_at":"2018-06-18T20:46:36.000Z","size":54,"stargazers_count":44,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-08T00:39:54.417Z","etag":null,"topics":["event-listener","events","javascript"],"latest_commit_sha":null,"homepage":null,"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/lencioni.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.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":"2016-11-02T22:10:39.000Z","updated_at":"2022-11-03T01:52:52.000Z","dependencies_parsed_at":"2022-08-30T14:11:06.559Z","dependency_job_id":null,"html_url":"https://github.com/lencioni/consolidated-events","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencioni%2Fconsolidated-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencioni%2Fconsolidated-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencioni%2Fconsolidated-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencioni%2Fconsolidated-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lencioni","download_url":"https://codeload.github.com/lencioni/consolidated-events/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978668,"owners_count":21834910,"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","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":["event-listener","events","javascript"],"created_at":"2024-10-11T19:27:15.467Z","updated_at":"2025-05-08T00:40:01.811Z","avatar_url":"https://github.com/lencioni.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# consolidated-events \u003csup\u003e[![Version Badge][npm-version-svg]][package-url]\u003c/sup\u003e\n\n[![Build Status][travis-svg]][travis-url]\n[![dependency status][deps-svg]][deps-url]\n[![dev dependency status][dev-deps-svg]][dev-deps-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[![npm badge][npm-badge-png]][package-url]\n\n\nManage multiple event handlers using few event listeners.\n\n## Example\n\n```js\nimport { addEventListener } from 'consolidated-events';\n\nconst removeEventListener = addEventListener(\n  window,\n  'scroll',\n  () =\u003e { console.log('scrolling') },\n  { passive: true }\n);\n\n...\n\nremoveEventListener();\n```\n\n[npm-version-svg]: http://versionbadg.es/lencioni/consolidated-events.svg\n[package-url]: https://npmjs.org/package/consolidated-events\n[travis-svg]: https://travis-ci.org/lencioni/consolidated-events.svg\n[travis-url]: https://travis-ci.org/lencioni/consolidated-events\n[deps-svg]: https://david-dm.org/lencioni/consolidated-events.svg\n[deps-url]: https://david-dm.org/lencioni/consolidated-events\n[dev-deps-svg]: https://david-dm.org/lencioni/consolidated-events/dev-status.svg\n[dev-deps-url]: https://david-dm.org/lencioni/consolidated-events#info=devDependencies\n[license-image]: http://img.shields.io/npm/l/consolidated-events.svg\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/consolidated-events.svg\n[downloads-url]: http://npm-stat.com/charts.html?package=consolidated-events\n[npm-badge-png]: https://nodei.co/npm/consolidated-events.png?downloads=true\u0026stars=true\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flencioni%2Fconsolidated-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flencioni%2Fconsolidated-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flencioni%2Fconsolidated-events/lists"}