National Taiwan Normal University (NTNU) Notifier.
npm i ntnu-notifier
import { CsieNotifier, Covid19Notifier } from "ntnu-notifier";
const notifier1 = new CsieNotifier();
const notifier2 = new Covid19Notifier();
notifier1.on("notify", async (notifier, news) => {
console.log(notifier, news);
});
notifier2.on("notify", async (notifier, news) => {
console.log(notifier, news);
});
notifier1.start();
notifier2.start();
Listener hooks are chainable.
import { CsieNotifier } from "ntnu-notifier";
const notifier = new CsieNotifier();
notifier
.on("notify", async (notifier, news) => {
console.log("Listener 1", news);
})
.on("notify", async (notifier, news) => {
console.log("Listener 2", news);
});
notifier.start();
More Details: Documentation.
CsieNotifier
)Covid19Notifier
)AaNotifier
)Generated using TypeDoc