Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/naimikan/deventor

A pure Javascript event emitter
https://github.com/naimikan/deventor

emitter event-emitter events javascript

Last synced: 28 days ago
JSON representation

A pure Javascript event emitter

Awesome Lists containing this project

README

        



version


license

deventor | API

A pure Javascript event emitter

Get Started

Include the files in your `index.html`:
```html

```

Usage

```javascript
var myDeventor = new Deventor({
name: 'myDeventor'
});

myDeventor.on('myCustomEvent', function (args) {
// ...
});

myDeventor.emit('myCustomEvent', {
arg1: 'arg1',
arg2: 'arg2'
});
```

Developing

Install dependencies, build the source files and preview

```shell
git clone https://github.com/Naimikan/deventor.git
npm install
grunt && grunt preview
```