@protobufjs/eventemitter
A minimal event emitter.
Last updated 9 years ago by dcode .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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.0                                ...           latest (9 years ago)

7 Versions

  • 1.1.0                                ...           9 years ago
  • 1.0.5                                ...           9 years ago
  • 1.0.4                                ...           9 years ago
  • 1.0.3                                ...           9 years ago
  • 1.0.2                                ...           9 years ago
  • 1.0.1                                ...           9 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (2)
Downloads
Today 0
This Week 3
This Month 25
Last Day 0
Last Week 22
Last Month 4
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |