Skip to content

ciebit/hermes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@ciebit/hermes

Provide event-like structure for communication between objects

Use

import Hermes from "@ciebit/hermes";

const hermes = new Hermes;

hermes.addListener('active', (text:string) => console.log(text));
hermes.dispache('active', 'Activated');


// For a single call to pass true in the third parameter
hermes.addListener('unique', () => console.log('Unique'), true)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors