gap-front-event

3.1.1 • Public • Published

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');

Readme

Keywords

Package Sidebar

Install

npm i gap-front-event

Weekly Downloads

4

Version

3.1.1

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • captainxu
  • cyjme
  • patrickstar
  • weiwenqiang
  • zhanjh