GitShow/sindresorhus/component-emitter
sindresorhus

component-emitter

Simple event emitter

by sindresorhus
Star on GitHubForknpm

JavaScript

608 stars118 forks23 contributorsQuiet · 2y agoSince 2012MIT

Meet the team

See all 23 on GitHub →
tj
tj38 contributions
jonathanong
jonathanong12 contributions
sindresorhus
sindresorhus10 contributions
TooTallNate
TooTallNate6 contributions
vendethiel
vendethiel6 contributions
rauchg
rauchg3 contributions
juliangruber
juliangruber2 contributions
yields
yields2 contributions

Languages

View on GitHub →
JavaScript100%

Recent fixes

View closed PRs →
Habibouldmoussa
Different checksum error on same versionClosedIssue

Hello I have an error during installation normally the same version has the same checksome no?

Habibouldmoussa · 1y ago
viveksacademia4git
Emitter Component > Failing License CheckClosedIssue

The Emitter Component is Failing License Check. Please refer to the Issue-1 created within the emitter-component-test GitHub Repository.

viveksacademia4git · 1y ago
TannerS
Just some random questionsClosedIssue

I am trying to learn more about this library but i had some questions. well in all honesty, i am a little lost on how this works. 1) If i take this example in the Readme If i understand correctly, you can create a new Emitter and register listeners to it. When you do, you create it with an event type. then using emit, you pass in that event type. then some listners like will run what ever you pass in is that correct so far? 2) To follow up, may i ask for an explanation on this example what does this do ? does it mean it uses the passed in object as a way to detect for events? I found another library that used the prototype of an advance nodejs class into the constructor, but i am not sure what changes that vs an empty create of a instance. thanks in advance!

TannerS · 2y ago
Structured data for AI agents

Repository: sindresorhus/component-emitter. Description: Simple event emitter Stars: 608, Forks: 118. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Open PRs: 0, open issues: 0. Last activity: 2y ago. Top contributors: tj, jonathanong, sindresorhus, TooTallNate, vendethiel, rauchg, juliangruber, yields, nulltask, stephenmathieson and others.

·@ofershap

Replace github.com with gitshow.dev