notifia
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Package Sidebar

Install

npm i notifia

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

7.76 kB

Total Files

15

Last publish

Collaborators

  • lavgup