0.1.0 • Published 12 months ago

@seobryn/simple-signals v0.1.0

Weekly downloads
-
License
AGPL-3.0-only
Repository
-
Last release
12 months ago

Simple Signals

This repository contains a simple implementation of signals for javascript.

Installation

npm install @seobryn/simple-signals

Usage

import { Signal } from '@seobryn/simple-signals';

const signal = new Signal();

signal.connect("test", (item: string) => console.log(item)); // Should print into console the text: `My Test argument` when the signal is emitted

signal.emit("test", "My Test argument");

License

This project is released under the AGPL-3.0-only license.

0.1.0

12 months ago