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

eventemitter11

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventemitter11

Next event emitter after the 10th one

latest
Source
npmnpm
Version
1.2.1
Version published
Maintainers
1
Created
Source

EventEmitter11

EventEmitter11

last commit version downloads license

Completely original EventEmmitter that isn't based on anything else

Warning: at this development stage it only supports node

Usage

You should install it first

npm i eventemitter11

Then you can use it

const Emitter = require('eventemitter11');
const emitter = new Emitter();

// Init listener
emitter.listen('my-original-event', (args) => {
  // do stuff
}, '10 minutes'); // TTL argument is optional

// Emit the event
emitter.emit('my-original-event', 'hi');

TODO

  • Add browser support
  • Implement once listener
  • Copy the rest of EventEmitter2

Keywords

event

FAQs

Package last updated on 10 Sep 2021

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