wx-event-emitter

2.0.3 • Public • Published

wx-event-emitter

EventEmitter for browser, Miniprogram(weapp/wxapp).

Install

To use this module directly (without browserify), install it:

npm install wx-event-emitter

With npm Or Miniprogram do:

const EventEmitter = require('wx-event-emitter');

For use in web browsers do:

<script src="dist/event-emitter.js"></script>

Add Namespace

emitter.on('click.a');

Documentation

The API in line with Nodejs. Nodejs

Package Sidebar

Install

npm i wx-event-emitter

Weekly Downloads

1

Version

2.0.3

License

MIT

Unpacked Size

24 kB

Total Files

10

Last publish

Collaborators

  • godxiaoji