npm.io
3.1.1 • Published 6 years ago

gap-front-event

Licence
MIT
Version
3.1.1
Deps
0
Size
11 kB
Vulns
0
Weekly
0

Gap Front Event

install

$ yarn add gap-front-event

Usage

import {GapEvent} from 'gap-front-event';

const event = new GapEvent();

event.on('attack', (target) => {
    console.log(`attack ${target}`); 
});

event.trigger('attack', 'cat');

Keywords