@ciebit/hermes
TypeScript icon, indicating that this package has built-in type declarations

4.0.1 • Public • Published

@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)

Package Sidebar

Install

npm i @ciebit/hermes

Weekly Downloads

3

Version

4.0.1

License

MIT

Unpacked Size

7.23 kB

Total Files

17

Last publish

Collaborators

  • johnnysaymon