New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

event.js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

event.js

a event customable UI-non-blocking async library for browser

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

event.js V0.1.0

a async & UI-non-blocking event-customable frontend library

it can create JavaScript Obejcts obtain HTMLElement's feature---Event Driven

all the events' workflow is providen by DOM Event Model

Notice!

This module is only available in the web browser!

install:
npm install event.js
example:

  var spore = new EventEmitter();

  spore.on('growup', function (data) {
    console.log(data);
  });

  spore.on('die', function (data) {
    // ...
  });

  spore.emit('born', { size: 0.05, color: blue });

other usages && options:

  EventEmitter(options)

  the options is an object, all the events follow this setting:
  {
    MAXListener: <Number>,
    bubbles: <Boolean>,
    cancelable: <Boolean>
  }

  method:
    .emit()
    .on()
    .once()
    .removeListener()

Keywords

event

FAQs

Package last updated on 11 Aug 2014

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