@protobufjs/eventemitter
A minimal event emitter.
Last updated 6 months ago by dcode .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @protobufjs/eventemitter 
SYNC missed versions from official npm registry.

@protobufjs/eventemitter

npm

A minimal event emitter.

API

  • new EventEmitter()
    Constructs a new event emitter instance.

  • EventEmitter#on(evt: string, fn: function, [ctx: Object]): EventEmitter
    Registers an event listener.

  • EventEmitter#off([evt: string], [fn: function]): EventEmitter
    Removes an event listener or any matching listeners if arguments are omitted.

  • EventEmitter#emit(evt: string, ...args: *): EventEmitter
    Emits an event by calling its listeners with the specified arguments.

License: BSD 3-Clause License

Current Tags

  • 1.1.1                                ...           latest (6 months ago)

8 Versions

  • 1.1.1                                ...           6 months ago
  • 1.1.0                                ...           10 years ago
  • 1.0.5                                ...           10 years ago
  • 1.0.4                                ...           10 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Downloads
Total 10
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE