How to use the promise-events.EventEmitter function in promise-events

To help you get started, we’ve selected a few promise-events examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github probot / probot / src / application.ts View on Github external
constructor (options?: Options) {
    const opts = options || {} as any
    this.events = new EventEmitter()
    this.log = wrapLogger(logger, logger)
    this.app = opts.app
    this.cache = opts.cache
    this.router = opts.router || express.Router() // you can do this?
    this.githubToken = opts.githubToken
    this.throttleOptions = opts.throttleOptions
    this.Octokit = opts.Octokit || ProbotOctokit
  }

promise-events

A promise-based events emitter

MIT
Latest version published 4 years ago

Package Health Score

47 / 100
Full package analysis

Popular promise-events functions