New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

events-light

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

events-light

Lightweight and fast implementation of the 'events' module for the browser and server.

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

events-light

This is a lighter and small version of the builtin Node.js events with some removals, but no additional features. This module was designed to be a trimmed down polyfill for the events module in the browser, but it can also be used on the server.

Install

npm install events-light --save

Usage

var EventEmitter = require('events-light');

var myEventEmitter = new EventEmitter();

myEventEmitter.on('hello', function(name) {
    console.log('Hello ' + name);
});

myEventEmitter.emit('hello', 'World');

Difference from the Node.js events module

License

MIT

Keywords

FAQs

Package last updated on 02 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc