notifia
v1.1.1
Published
Simple and lightweight Node library for sending messages to several services online.
Downloads
3
Maintainers
Readme
Notifia
No sweat, TypeScript-supported Node library for sending messages to an array of different providers.
Providers
- Discord
- Slack
- 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);