Skip to content

okTurtles/okTurtles.events

Repository files navigation

okTurtles.events

Event handling for SBP.

See index.test.js for usage examples.

Install:

$ npm install --save @sbp/okturtles.events

Usage:

import sbp from '@sbp/sbp'
import '@sbp/okturtles.events'

// now you can use any of the okTurtles.events selectors
// note: you only need to import '@sbp/okturtles.events' once!

Registers the following selectors:

  • 'okTurtles.events/on'
  • 'okTurtles.events/once'
  • 'okTurtles.events/emit'
  • 'okTurtles.events/off'

History

See HISTORY.md.

License

MIT.