@poriyaalar/js-event

0.0.2 • Public • Published

JS Events

Simple Util to create Events in JS

Usage

import  {  Events  }  from  '@poriyaalar/js-event';

const EventsEmitter = new Events();
EventsEmitter.emit("eventName", 5);
EventsEmitter.subscribe("eventName", (value) => {
console.log(5);
});

Install

npm i @poriyaalar/js-event or yarn add @poriyaalar/js-event

Readme

Keywords

Package Sidebar

Install

npm i @poriyaalar/js-event

Weekly Downloads

10

Version

0.0.2

License

ISC

Unpacked Size

3.44 kB

Total Files

6

Last publish

Collaborators

  • poriyaalar