
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
nestjs-slack-notifier
Advanced tools
A simple nest js wrapper around the Slack webhook API. For sending notifications to slack from your nest js application.
npm install nestjs-slack-notifier
or
yarn add nestjs-slack-notifier
// Import module:
import { SlackNotificationModule } from 'nestjs-slack-notifier';
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
imports: [
SlackNotificationModule.forRoot({
// your slack webhook url goes here
slackWebhookURL: 'xxxxxxxxx',
}),
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}
// Sending the notification using the serivce class
import { SlackNotificationService } from 'nestjs-slack-notifier';
import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
constructor(
private readonly slackNotificationService: SlackNotificationService,
) {}
async sendMessage() {
return this.slackNotificationService.success({
text: 'Hey this is test',
});
}
}
//Pre-styled messages
await this.slackNotificationService.success({
text: 'Hey this is success message',
});
await this.slackNotificationService.bug({
text: 'Hey this is bug reported',
});
await this.slackNotificationService.error({
text: 'Hey this is error message',
});
MIT. Copyright © 2022 Laxmikanta Nayak
FAQs
Nest js package for slack notification
The npm package nestjs-slack-notifier receives a total of 8 weekly downloads. As such, nestjs-slack-notifier popularity was classified as not popular.
We found that nestjs-slack-notifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.