Skip to content

Sign312/ievent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Event

a very light JavaScript Event System

install

npm install ievent -S

usage

import iEvent from 'ievent'

iEvent.on("hello", (name, age) => {
  console.log("hello " + name + " age=" + age);
});

iEvent.on("hello", (name, age) => {
  console.log("hello " + name + " age=" + age + "...");
});

iEvent.once('hi',name=>{
  console.log('hi '+name)
})

// Event.off("hello");

iEvent.emit("hello", "flypie", 21);

iEvent.emit('hi','flypie')

About

a very light JavaScript Event System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages