# @notify.events/nodejs

> Node.js client for Notify.Events

Latest version **1.2.3** (published 2025-02-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @notify.events/nodejs
pnpm add @notify.events/nodejs
yarn add @notify.events/nodejs
bun add @notify.events/nodejs
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2025-02-11 |
| First published | 2020-08-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 4 |
| Unpacked size | 25.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Notify.Events |
| Maintainers | notify.events |
| Keywords | notification, alert, teams, viber, telegram, signal, slack, sms, voice, call |

## Links

- npm: https://www.npmjs.com/package/@notify.events/nodejs
- Repository: https://github.com/notify-events/nodejs
- Homepage: https://github.com/notify-events/nodejs#readme
- Issues: https://github.com/notify-events/nodejs/issues
- npm.io page: https://npm.io/package/@notify.events/nodejs

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^1.7.9
- [form-data](https://npm.io/package/form-data.md) ^4.0.1
- [validator](https://npm.io/package/validator.md) ^13.7.0
- [agentkeepalive](https://npm.io/package/agentkeepalive.md) ^4.2.0

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.2.3 (latest) — 2025-02-11
- 1.2.2 — 2025-02-11
- 1.2.1 — 2022-08-07
- 1.2.0 — 2022-08-03
- 1.1.1 — 2022-01-17
- 1.1.0 — 2022-01-12
- 1.0.3 — 2021-04-14
- 1.0.2 — 2021-04-14
- 1.0.1 — 2021-01-08
- 1.0.0 — 2020-08-14

## README

# Node.js client for Notify.Events

A simple node.js extension that simplifies the process of integrating your project with the [Notify.Events](https://notify.events) service to send messages to your channels.

#### Instruction in other languages

- [Русский](/docs/ru-RU/README.md)

# Installation

The preferred way to install this extension is through [npm](https://www.npmjs.com/get-npm).

Either run

```
npm install @notify.events/nodejs
```

or add

```
"@notify.events/nodejs": "~1.0"
```

to the dependencies section of your package.json.

# Usage

To use this extension, you need to import the Message class into your Node.js script.

If you have used npm for installation, it will be enough to include lib like this:

```nodejs
const Message = require('@notify.events/nodejs').Message;
```

Otherwise, if you added the lib manually, you need to import the Message by full path:

```nodejs
const Message = require('./path/to/your/Message');
```

After that, you can create a message object, set the necessary parameters and send the message to the channel.

### Usage example

```nodejs
const Message = require('@notify.events/nodejs').Message;

// Defining channel token.
// You get this token when creating a channel on the Notify.Events service.
const token = 'XXXXXXXX';

// Create a message object.
const message = new Message('Some <b>important</b> message', 'Title', Message.PRIORITY_HIGH, Message.LEVEL_ERROR);

// Attach the file to the message.
message.addFile('path\to\local\file');

// Send a message to your channel in Notify.Events.
message.send(token);
```

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