# ntnu-notifier

> National Taiwan Normal University (NTNU) Notifier.

Latest version **0.5.1** (published 2022-08-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install ntnu-notifier
pnpm add ntnu-notifier
yarn add ntnu-notifier
bun add ntnu-notifier
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.5.1 |
| Published | 2022-08-26 |
| First published | 2021-10-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 19 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | JacobLinCool |
| Maintainers | jacoblincool |
| Keywords | NTNU, National Taiwan Normal University |

## Links

- npm: https://www.npmjs.com/package/ntnu-notifier
- Repository: https://github.com/JacobLinCool/NTNU-Notifier
- Homepage: https://github.com/JacobLinCool/NTNU-Notifier#readme
- Issues: https://github.com/JacobLinCool/NTNU-Notifier/issues
- npm.io page: https://npm.io/package/ntnu-notifier

## Dependencies (2)

- [cheerio](https://npm.io/package/cheerio.md) ^1.0.0-rc.12
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7

## Recent versions

- 0.5.1 (latest) — 2022-08-26
- 0.5.0 — 2022-08-26
- 0.4.1 — 2022-08-26
- 0.4.0 — 2022-08-26
- 0.3.3 — 2021-10-29
- 0.3.2 — 2021-10-19
- 0.3.1 — 2021-10-17
- 0.3.0 — 2021-10-17
- 0.2.1 — 2021-10-16
- 0.2.0 — 2021-10-16
- 0.1.0 — 2021-10-16

## README

# NTNU Notifier

 National Taiwan Normal University (NTNU) Notifier.

 [![NPM](https://img.shields.io/npm/v/ntnu-notifier.svg?style=flat)](https://www.npmjs.com/package/ntnu-notifier)

## Install

```sh
npm i ntnu-notifier
```

## Usage

```ts
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.

```ts
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](https://jacoblincool.github.io/NTNU-Notifier/).

## Availible Notifiers

* CSIE Notifier (`CsieNotifier`)
* COVID19 Notifier (`Covid19Notifier`)
* Academic Affairs Notifier (`AaNotifier`)

## Links

* [GitHub Repository](https://github.com/JacobLinCool/NTNU-Notifier)
* [NPM Package](https://www.npmjs.com/package/ntnu-notifier)
* [Documentation](https://jacoblincool.github.io/NTNU-Notifier/)

---
_Source: https://npm.io/package/ntnu-notifier · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
