Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/naimikan/deventor
- Owner: Naimikan
- License: mit
- Created: 2018-02-25T19:35:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-25T20:23:23.000Z (over 1 year ago)
- Last Synced: 2024-10-04T14:08:04.142Z (about 2 months ago)
- Topics: emitter, event-emitter, events, javascript
- Language: TypeScript
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
```