# screwdriver-notifications-base

> Base class for defining the behavior between screwdriver and notifications plugins

Latest version **5.0.0** (published 2025-02-19) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install screwdriver-notifications-base
pnpm add screwdriver-notifications-base
yarn add screwdriver-notifications-base
bun add screwdriver-notifications-base
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2025-02-19 |
| First published | 2017-02-23 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jerry Zhang |
| Maintainers | sd-buildbot, petey, d2lam, fenrirunbound, tkyi, stjohnjohnson, minz1027, screwdriver, jerryzhang222 |
| Keywords | screwdriver, yahoo |

## Links

- npm: https://www.npmjs.com/package/screwdriver-notifications-base
- Repository: https://github.com/screwdriver-cd/notifications-base
- Issues: https://github.com/screwdriver-cd/screwdriver/issues
- npm.io page: https://npm.io/package/screwdriver-notifications-base

## Recent versions

- 5.0.0 (latest) — 2025-02-19
- 4.0.0 — 2022-11-18
- 3.2.0 — 2022-08-18
- 3.1.0 — 2021-07-09
- 3.0.3 — 2020-12-03
- 3.0.2 — 2018-10-25
- 3.0.1 — 2018-09-07
- 3.0.0 — 2017-04-18
- 2.0.0 — 2017-03-30
- 1.0.0 — 2017-03-30
- 0.0.1 — 2017-02-23

## README

# Notifications Base
[![Version][npm-image]][npm-url] ![Downloads][downloads-image] [![Build Status][status-image]][status-url] [![Open Issues][issues-image]][issues-url] ![License][license-image]

> Base class for defining the behavior between screwdriver and notifications plugins

## Usage

```bash
npm install screwdriver-notifications-base
```

## Interface
This is an interface for receiving Screwdriver API events and sending notification to users based on their job settings.

### notify

#### Expected Outcome

Notify the user based on their job settings, e.g. [email](https://github.com/screwdriver-cd/notifications-email), [slack](https://github.com/screwdriver-cd/notifications-slack).

## Extending
To extend the base class, the functions to override are:
1. `_notify`
2. `events` (optional)

Override `events` if you want to send notification based on other events.

## Testing

```bash
npm test
```

## License

Code licensed under the BSD 3-Clause license. See LICENSE file for terms.

[npm-image]: https://img.shields.io/npm/v/screwdriver-notifications-base.svg
[npm-url]: https://npmjs.org/package/screwdriver-notifications-base
[downloads-image]: https://img.shields.io/npm/dt/screwdriver-notifications-base.svg
[license-image]: https://img.shields.io/npm/l/screwdriver-notifications-base.svg
[issues-image]: https://img.shields.io/github/issues/screwdriver-cd/notifications-base.svg
[issues-url]: https://github.com/screwdriver-cd/notifications-base/issues
[status-image]: https://cd.screwdriver.cd/pipelines/133/badge
[status-url]: https://cd.screwdriver.cd/pipelines/133

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