npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

events-es6

1.1.1 • Public • Published

events Build Status

Node's event emitter for all engines. Modified to include an ES6 version.

Breaking Changes

ES6 modules do not let you export an object as the module. Thus, the following will not work if you are using the non-ES6 version:

var EventEmitter = require('events');
var emitter = new EventEmitter();

Instead, do the following:

var EventEmitter = require('events').EventEmitter;
var emitter = new EventEmitter();

Install

npm install events

Require

var EventEmitter = require('events').EventEmitter

Usage

See the node.js event emitter docs

install

npm i events-es6

Downloadsweekly downloads

6

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability