@hansogj/abonnement-js
v4.3.0
Published
lightweight naive event subscription
Downloads
4
Maintainers
Readme
abonnement-js
lightweight, naive, event susbscription
Simple excample
import {
Abonnement,
JoinedAbonnement,
AlleAbonnementer,
} from "../src/abonnement";
let stringAbonnement: Abonnement<String> = new Abonnement<String>("start value")
stringAbonnement.abonner(e => console.log("current value is " + e);
stringAbonnement.varsle("updated value")
Inspect the test-file for usage
Develop
npm ci & npm build
to build this pack
Breaking v4.0.0
Moving target lib from "lib" to "dist"