🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

emit-machine

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emit-machine

Simple event emitter for any js platform

1.0.2
latest
npm
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

About

Simple event emitter for any js platform

Install

npm i emit-machine

Usage

const EventEmitter = require('emit-machine');

const emitter = new EventEmitter;

// subscribtion to specified event
emitter.on('your_event', event => {
  console.log(event);
});

// sending data to subscribed callback functions
emitter.emit('your_event', { type: 'your_event', data: 1 });

Keywords

event

FAQs

Package last updated on 18 Nov 2019

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