This package has been deprecated

Author message:

Will be replaced with functional alternatives.

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

0.8.4 • Public • Published

ES6-EventEmitter

npm version npm download dependencies license

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

Visit my patreon profile at patreon.com/eserozvataf

Readme

Keywords

Package Sidebar

Install

npm i es6-eventemitter

Weekly Downloads

4

Version

0.8.4

License

Apache-2.0

Last publish

Collaborators

  • eserozvataf