New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

simpler-emitter

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simpler-emitter

27-lines (JSDoc excluded) simple & clean event emitter.

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

simpler-emitter

27-lines (JSDoc excluded) simple & clean event emitter.

createEmitter()

Create emitter

Returns

Object

emit(event, data)

Call listeners

Parameters

NameTypesDescription
eventstringEvent name
dataEvent data

off(event, listener)

Remove listener

Parameters

NameTypesDescription
eventstringEvent name
listenerfunctionEvent listener

on(event, listener)

Add listener

Parameters

NameTypesDescription
eventstringEvent name
listenerfunctionEvent listener

once(event, listener)

Add one-time listener

Parameters

NameTypesDescription
eventstringEvent name
listenerfunctionEvent listener

Documentation partly generated with doxdox

FAQs

Package last updated on 10 Apr 2022

Did you know?

Socket

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.

Install

Related posts