@benhepburn/adonis-notifications
TypeScript icon, indicating that this package has built-in type declarations

0.4.5 • Public • Published

AdonisJS Notifications

This package creates a notifications service for use in AdonisJS v6 applications.

Install

Install the package:

npm install @benhepburn/adonis-notifications

or

pnpm install @benhepburn/adonis-notifications

or

yarn add @benhepburn/adonis-notifications

Then, configure the package for Adonis:

node ace configure @benhepburn/adonis-notifications

Configuration

Set the channel you wish to use for each notification type in config/notifications.ts.

Existing channels

Creating a channel

  1. Set up a new AdonisJS package and add @benhepburn/adonis-notifications to the peer and dev dependencies.
  2. Create a new class extending NotificationChannel and implement required members

Imports:

import { Notification, NotificationChannel } from '@benhepburn/adonis-notifications'

Package Sidebar

Install

npm i @benhepburn/adonis-notifications

Weekly Downloads

1

Version

0.4.5

License

MIT

Unpacked Size

22 kB

Total Files

36

Last publish

Collaborators

  • benhepburn