{"id":17399244,"url":"https://github.com/feross/re-emitter","last_synced_at":"2025-09-13T01:31:40.263Z","repository":{"id":4441972,"uuid":"5580301","full_name":"feross/re-emitter","owner":"feross","description":"Re emit events from another emitter","archived":false,"fork":false,"pushed_at":"2020-10-29T05:01:09.000Z","size":31,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T02:53:09.839Z","etag":null,"topics":["emitter","javascript","nodejs","re-emit","reemit"],"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/feross.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":"2012-08-28T03:26:11.000Z","updated_at":"2024-09-25T09:11:13.000Z","dependencies_parsed_at":"2022-08-27T06:12:34.301Z","dependency_job_id":null,"html_url":"https://github.com/feross/re-emitter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fre-emitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fre-emitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fre-emitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Fre-emitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/re-emitter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232806368,"owners_count":18579330,"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":["emitter","javascript","nodejs","re-emit","reemit"],"created_at":"2024-10-16T15:13:57.551Z","updated_at":"2025-01-07T00:33:41.462Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# re-emitter [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/re-emitter/master.svg\n[travis-url]: https://travis-ci.org/feross/re-emitter\n[npm-image]: https://img.shields.io/npm/v/re-emitter.svg\n[npm-url]: https://npmjs.org/package/re-emitter\n[downloads-image]: https://img.shields.io/npm/dm/re-emitter.svg\n[downloads-url]: https://npmjs.org/package/re-emitter\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n#### Re emit events from another emitter\n\n![reemit](https://raw.githubusercontent.com/feross/re-emitter/master/img.jpg)\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/magnet-uri.svg)](https://saucelabs.com/u/magnet-uri)\n\nWorks in node and the browser with [browserify](http://browserify.org/).\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n### install\n\n```\nnpm install re-emitter\n```\n\n### usage\n\n```js\nvar reemit = require('re-emitter')\n\nvar emitter = new EventEmitter()\nvar other = new EventEmitter()\n\nreemit(emitter, other, ['foo', 'bar'])\n\nother.on('foo', function () {\n  // foo will fire on other emitter!\n})\n\nemitter.emit('foo')\n\nother.on('baz', function () {\n  // baz will not fire on other emitter\n})\n\nemitter.emit('baz')\n```\n\n#### canceling re-emitting\n\n`reemit` returns a `function`, which when called, cancels all re-emitting by removing the\nevent listeners which it added.\n\n### contributors\n\n- Raynos\n- Feross\n\n### license\n\nMIT. Copyright (c) Raynos.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fre-emitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Fre-emitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Fre-emitter/lists"}