simple-event-emitter
Version:
Simple Event Emitter
48 lines (30 loc) • 733 B
Markdown
```
npm install simple-event-emitter
```
```javascript
SEE.AddListener("notificationEvent", handler);
SEE.FireEvent("notificationEvent");
SEE.RemoveListener("notificationEvent");
SEE.AddListener("notificationEvent", handler)
.AddListener("buildEvent", handler)
.AddListener("routeEvent", handler)
.AddListener("closingEvent", handler);
SEE.FireEvent("notificationEvent")
.FireEvent("closingEvent");
function handler() {
console.log('Event fired!');
}
```
To build:
```
npm install
webpack && webpack --no-minimize
```
This outputs two files to the ./dist directory.
- see.js
- see.min.js