es6-eventemitter v0.8.4
ES6-EventEmitter
What is the ES6-EventEmitter?
ES6-EventEmitter is an alternative implementation of node.js's event emitter module. While maintaining the same API with node.js version, it also runs on browser environment.
Quick start
Execute npm install es6-eventemitter
to install es6-eventemitter and its dependencies into your project directory.
Usage
import EventEmitter from 'es6-eventemitter';
const events = new EventEmitter();
// subscribe on event 'test'
events.on('test', (value) => { console.log(`event test: ${value}`); });
// invoke event 'test' with parameters
events.emit('test', 'hello world');
Todo List
See GitHub Projects for more.
Requirements
- node.js (https://nodejs.org/)
License
Apache 2.0, for further details, please see LICENSE file
Contributing
See contributors.md
It is publicly open for any contribution. Bugfixes, new features and extra modules are welcome.
- To contribute to code: Fork the repo, push your changes to your fork, and submit a pull request.
- To report a bug: If something does not work, please report it using GitHub Issues.
To Support
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago