
Product
Announcing Bun and vlt Support in Socket
Bringing supply chain security to the next generation of JavaScript package managers
@fingerartur/ts-event-emitter
Advanced tools
Simple Typescript event emitter
type Events = 'valuechange' | 'timeupdate'
const emitter = new EventEmitter<Events>()
const listener = (state: string) => {
// ...
}
emitter.addEventListener('valuechange', listener)
emitter.triggerEvent('valuechange', 'value1')
emitter.triggerEvent('valuechange', 'value2')
emitter.removeEventListener('valuechange', listener)
emitter.removeAllEventListeners('valuechange')
// Remove all listeners of all events
emitter.clear()
FAQs
Event emitter for typescript
We found that @fingerartur/ts-event-emitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Bringing supply chain security to the next generation of JavaScript package managers

Product
A safer, faster way to eliminate vulnerabilities without updating dependencies

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.