Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

seangenabe/wanikani-emitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wanikani-notifier

Core functions for wanikani-emitter.

Usage

See the usage instructions for wanikani-notifier for details.

Inheritance

WaniKaniEmitter inherits from EventEmitter. However, no fields such as listener count are touched.

API

new WaniKaniEmitter(config)

  • config.key
  • config.errorSuspendDuration
  • config.notifiedSuspendDuration
  • config.waitingSuspendDuration
  • config.dashboardOnBothPending
  • config.minilag

emitter.start() : Promise

emitter.stop()

WaniKaniEmitter.stop

Private methods

  • emitter.process() : Promise
  • WaniKaniEmitter.scheduleNextCheck : int
  • WaniKaniEmitter.requestUri(uri: string) : Promise - denodeified request function.

    Events

    error

    Will be emitted when an error is encountered. Important note: The emitter will continue running whatever error occurs, except for:

    • API errors, which are tagged with err.WaniKaniEmitter_type = 'APIError'.

    See also

About

Core functions for wanikani-notifier. Emits events when you have new WaniKani lessons and reviews.

Resources

License

Stars

Watchers

Forks

Packages

No packages published