@novu/providers
TypeScript icon, indicating that this package has built-in type declarations

0.24.2 • Public • Published

Novu Providers

Version Downloads

A collection of stateless notification delivery providers, abstracting the underlying delivery provider implementation details. Independently usable, and additionally consumed by the Novu Platform.

Installation

npm install @novu/providers

Usage

The @novu/providers package contains a set of providers that can be used to send notifications to various channels.

The following example shows how to use the TwilioSmsProvider to send a message to a phone number.

import { TwilioSmsProvider } from '@novu/providers';

const provider = new TwilioSmsProvider({
  accountSid: process.env.TWILIO_ACCOUNT_SID,
  authToken: process.env.TWILIO_AUTH_TOKEN,
  from: process.env.TWILIO_FROM_NUMBER, // a valid twilio phone number
});

await provider.sendMessage({
  to: '0123456789',
  content: 'Message to send',
});

For all supported providers, visit the Novu Providers package.

Readme

Keywords

none

Package Sidebar

Install

npm i @novu/providers

Weekly Downloads

27

Version

0.24.2

License

MIT

Unpacked Size

1.22 MB

Total Files

861

Last publish

Collaborators

  • galtidhar
  • rifont
  • sokratis
  • letitrock
  • scopsy