nestjs-slack-webhook
    TypeScript icon, indicating that this package has built-in type declarations

    8.2.0 • Public • Published

    nestjs-slack-webhook

    Actions Status npm version

    Nest.js + Slack Incoming Webhook

    Install

    npm install nestjs-slack-webhook
    

    Usage

    @Module({
      imports: [
        SlackModule.forRoot({
          url: "SLACK_WEBHOOK_URL", // ref: https://api.slack.com/messaging/webhooks#posting_with_webhooks
        }),
      ],
    })
    export class AppModule {}

    Inject IncomingWebhook instance

    @Injectable()
    export class AppService {
      constructor(
        @InjectSlack()
        private readonly slack: IncomingWebhook
      ) {}
    }

    Contributing

    PRs accepted.

    License

    MIT © g59

    Install

    npm i nestjs-slack-webhook

    DownloadsWeekly Downloads

    460

    Version

    8.2.0

    License

    MIT

    Unpacked Size

    23.5 kB

    Total Files

    38

    Last publish

    Collaborators

    • 9renpoto
    • yasai-t
    • abyssparanoia