abonnement-js

lightweight naive event subscription

Usage no npm install needed!

<script type="module">
  import abonnementJs from 'https://cdn.skypack.dev/abonnement-js';
</script>

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