JSPM

eventemitter-promise

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q25894F
  • License ISC

Event Emitter with lazy promise.

Package Exports

  • eventemitter-promise

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eventemitter-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

eventemitter-promise

Event Emitter with lazy promise ! (see http://github.com/bios21/superlazypromise)

Installation

Then install it via npm:

$ npm install --save eventemitter-promise

Or via bower:

$ bower install --save eventemitter-promise

Example Usage

Each listener are stored to be fired later on a SuperLazyPromise

emit\on event event.* event.context event.context!
event
event.context
event.context!

! : Firing an event on strict context (event.context!) is not yet implemented.

const EventEmitter = require('eventemitter-promise');

class Clazz extends EventEmitter {
    emit() {
    }
    on() {
    }
}

License

ISC License. See the LICENSE file.