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

kiss-events

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kiss-events

Events as a first class citizen.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Kiss

Simple frustration free libraries.

Kiss Events

Events as a first class citizen.

Quick start

npm install kiss-events --save
  • Signal Event dispatching
    // Create Signal
    let message = new Signal();
    
    // Setup one or more listeners
    const listener = message.on(m => console.info(m));
    
    // Or just listen once, no need to remove listener
    message.once(m => console.info(m));
    
    // Trigger an event
    message.trigger("We have a problem");
    
    // Stop listener
    message.off(listener);
  • Property Property change event dispatching
    // Create Property
    let name = new Property();
    
    // Setup one or more listeners
    const listener = name.on(name => console.log(name));
    
    // Or just listen once, no need to remove listener
    
    // Trigger a change
    name.value = "Scott B"
    
    // Stop listener
    name.off(listener);

Keywords

Event

FAQs

Package last updated on 21 Apr 2018

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