Socket
Book a DemoInstallSign in
Socket

@dalisoft/events

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dalisoft/events

One more event emitter for Node.js and browser

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
22
-4.35%
Maintainers
1
Weekly downloads
 
Created
Source

events

Greenkeeper badge

One more event emitter for Node.js and browser

Features

  • Performant
  • Easy
  • UMD compatible

Installation

We recommend install via npm because of it's cache and flat node modules tree

npm i @dalisoft/events

then you able to import to Node.js/Browser easily

// Node.js
const Events = require("@dalisoft/events");

// Browser
// window.Events OR Events

// ES6
import Events from "@dalisoft/events";

Usage

const ev = new Events();

ev.on("hello", name => console.log("Hello ", name));
ev.emit("hello", "world");

License

MIT

Keywords

event

FAQs

Package last updated on 16 Nov 2019

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