UNPKG

@hansogj/abonnement-js

Version:

lightweight naive event subscription

30 lines (18 loc) 557 B
# abonnement-js lightweight, naive, event susbscription ## Simple excample ```typescript 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](src/abonnement.spec.ts)-file for usage ## Develop `npm ci & npm build` to build this pack ## Breaking v4.0.0 Moving target lib from "_lib_" to "_dist_"