Node.js Event Emitter
Node’s event-driven architecture allows us to execute certain actions when something happens. This is done via objects (called “emitters”) which can emit named events that cause functions (“listeners”) to be executed. Objects that emit events are instances of node’s EventEmitter class, made available via the events module. In this article we’ll look at node’s event emitter.