0.0.2 • Published 6 years ago

dgaya_evented v0.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

This is a simple event emitter implementation that enhances any existing object to be an event emitter.

  Evented is a module that
    can create a new evented object
        ✓ from no parameter
    can add events to existing object
        ✓ accepts object parameter
        ✓ keeps nested properties
        ✓ keeps parent functions
    behaves as an event emitter
      ✓ can emit and receive events
      ✓ event can pass custom information
      ✓ has once
      ✓ can disable observers
const evented = require('dgaya_evented');
const e = evented();
e.on('event_name', () => console.log('Hi!'));
e.emit('event_name');
0.0.2

6 years ago

0.0.1

6 years ago