deventor
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

version license

deventor | API

A pure Javascript event emitter

Get Started

Include the files in your index.html:

<script src="deventor.min.js"></script>

Usage

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

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

Package Sidebar

Install

npm i deventor

Weekly Downloads

2

Version

2.0.4

License

MIT

Unpacked Size

13.6 kB

Total Files

7

Last publish

Collaborators

  • naimikan