Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 973 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 973 Bytes

Simple event manager

NPM

Install

npm i @bleckert/events or yarn add @bleckert/events

Usage

import Events from '@bleckert/events';

const events = new Events();

events.on('test', console.log);
events.emit('test', 'foo', 'bar');