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

notifia

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notifia

Simple and lightweight Node library for sending messages to several services online.

latest
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

Notifia

No sweat, TypeScript-supported Node library for sending messages to an array of different providers.

Providers

  • Discord
  • Slack
  • Mail
  • Much, much more to come!

Installation

You'll need Node.js, a package manager (npm, yarn, pnpm etc.) installed.

npm install notifia
# or
yarn add notifia
# or
pnpm add notifia

Usage

Discord

// ESM is required
import { DiscordProvider } from 'notifia';

const discord = new DiscordProvider('webhookUrl');

const send = async (content: string) => {
	await discord.send(content);
}

await send('Initial fire.');
setInterval(async () => await send('Fired webhook.'), 10000);

Keywords

notify

FAQs

Package last updated on 28 Jun 2021

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