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

notifier-ez

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notifier-ez

A universal notification package that supports multiple platforms through URL-based configuration

latest
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

Notifier EZ

A unified notification service that supports multiple platforms including Discord, Telegram, Slack, Gotify, Bark, and SMTP email.

Usage

import { createNotifier } from "notifier-ez";

// Create a Discord notifier instance
let notifier = createNotifier(
  "discord://CustomUsername:YOUR-WEBHOOK-TOKEN@CHANNEL-ID"
);

// Send notifications
notifier.send({
  title: "CPU Usage Alert",
  message: "CPU usage exceeded 90%",
  priority: "high",
});

// create a smtp notification
notifier = createNotifier(
  "smtp://username:password@host:port?from=fromAddress&to=toAddress,toAddress"
);

notifier.send({
  title: "System Update",
  message: "Deployment completed successfully",
  priority: "normal",
});

notifier.send({
  title: "Daily Report",
  message: "All systems operational",
  priority: "low",
});

Configuration

Pass any of these url formats into the notifier, and the notifier will automatically detect the service type.

Discord

discord://username:webhook-token@channel-id
  • username: Your custom username for the webhook
  • webhook-token: The token part from your Discord webhook URL
  • channel-id: Your Discord channel ID

Telegram

telegram://:bot-token@chat-id
  • bot-token: Your Telegram bot token URL encoded
  • chat-id: Your chat ID (can be group or individual)

Slack

slack://token@webhook-id
  • Format: T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Gotify

gotify://hostname:port/token
  • hostname: Your Gotify server hostname
  • port: Server port (optional)
  • token: Your Gotify application token

Bark

bark://device-key@server
  • device-key: Your Bark device key
  • server: Bark server (default: api.day.app)

SMTP (Email)

smtp://username:password@host:port?from=fromAddress&to=toAddress1,toAddress2
  • username: SMTP username
  • password: SMTP password
  • host: SMTP server hostname
  • port: SMTP port (usually 465 for SSL)
  • from: Sender email address
  • to: Recipient email address(es), comma-separated

Keywords

notification

FAQs

Package last updated on 06 Mar 2025

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