Skip to content
/ notifia Public

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

License

Notifications You must be signed in to change notification settings

lavgup/notifia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

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

Resources

License

Stars

Watchers

Forks