New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ntnu-notifier

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ntnu-notifier

National Taiwan Normal University (NTNU) Notifier.

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
1
Created
Source

NTNU Notifier

National Taiwan Normal University (NTNU) Notifier.

NPM

Install

npm i ntnu-notifier

Usage

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();

Multiple Listeners

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.

Availible Notifiers

  • CSIE Notifier (CsieNotifier)
  • COVID19 Notifier (Covid19Notifier)
  • Academic Affairs Notifier (AaNotifier)

Keywords

NTNU

FAQs

Package last updated on 26 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts