Skip to main content
Deno 2 is finally here 🎉️
Learn more

PubSub for Deno

A simple PubSub module for deno.

Example

import { PubSub } from "https://deno.land/x/pubsub@0.0.4/mod.ts";

class Test {
  public x = "sfg";
}

const m = new PubSub();

m.subscribe(Test, (t) => {
  console.log(t);
});

m.publish(new Test());

License

Licensed under the MIT License, checkout the LICENSE for more information.