1.1.1 • Published 3 years ago

notifia v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago