nestjs-notifications:NestJs通知包-受Laravel Notifications启发

时间:2021-03-30 19:36:33
【文件属性】:
文件名称:nestjs-notifications:NestJs通知包-受Laravel Notifications启发
文件大小:113KB
文件格式:ZIP
更新时间:2021-03-30 19:36:33
TypeScript NestJs通知 NestJs Notifications是一种受Laravel Notifications启发的灵活的多渠道通知服务: : 此模块旨在通过各种传递渠道发送简短的信息性消息,这些信息将用户在您的应用程序中发生的事情通知用户。 例如,如果您正在编写计费应用程序,则可以通过电子邮件和SMS通道向您的用户发送“已付款的发票”通知。 您可以在此软件包中使用预建的交付渠道,也可以创建自己的自定义渠道,可以轻松地与该软件包集成。 安装 $ npm install nestjs-notifications --save 用法 要使用此软件包,您将需要一个通知和至少一个Channel。 您可以创建自己的自定义渠道,也可以使用此软件包随附的预制渠道。 示例频道和示例通知如下。 完成此操作后,您可以像这样发送触发通知: import { HttpService, Injectab
【文件预览】:
nestjs-notifications-main
----index.ts(24B)
----.eslintrc.js(666B)
----src()
--------interfaces.ts(769B)
--------constants.ts(232B)
--------index.ts(178B)
--------nestjs-notifications.core-module.ts(4KB)
--------channels()
--------nestjs-notifications.service.spec.ts(2KB)
--------nestjs-notifications.module.ts(1021B)
--------notification()
--------nestjs-notifications.service.ts(2KB)
----nest-cli.json(64B)
----tsconfig.json(428B)
----LICENSE(1KB)
----.prettierrc(51B)
----README.md(6KB)
----index.d.ts(23B)
----.gitignore(375B)
----index.js(166B)
----.eslintignore(28B)
----package-lock.json(327KB)
----package.json(2KB)

网友评论