customize-event

1.0.0 • Public • Published

一个自定义事件注册器,用以添加自定义事件。

const Event = require('./index')

使用Event.on(name, callback) 创建一个事件监听

使用Event.emit(name, arguments) 触发某个名称的事件,并传递参数

Package Sidebar

Install

npm i customize-event

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • wizardalice