0.0.5 • Published 7 years ago

cogsworth-schedule v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

cogsworth-schedule

Schedule is an optional but recommended base class for using schedules in cogsworth.

Any schedules you pass to cogsworth will eventually be cast into a Schedule instance.

It provides very little value outside of providing a default id.

A schedule of cogsworth has an id, a trigger, & a tourist. tourist is additional data that you can pass that cogsworth takes along for the ride!

usage

var Schedule = require('cogsworth-schedule')
var schedule = new Schedule({
  [id]: 'some_id',
  trigger: <Trigger>,
  [tourist]: { ... }
})