@mohayonao/event-emitter

tiny event emitter

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jul 6, 2015Jul 4, 2015Minified + gzip package size for @mohayonao/event-emitter in KB

Readme

EVENT EMITTER

Build Status NPM Version License

tiny event emitter

Installation

Node.js

npm install @mohayonao/event-emitter

API

EventEmitter

  • constructor()

Instance methods

  • listeners(event: string): function[]
  • addListener(event: string, listener: function): self
  • on(event: string, listener: function): self
  • once(event: string, listener: function): self
  • removeListener(event: string, listener: function): self
  • removeAllListeners([ event: string ]): self
  • emit(event: string, arg1: any): self

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.