Nest.js + slack-webhook
Core dependencies of this npm package and its dev dependencies.
@9renpoto/tsconfig, @nestjs/testing, @types/jest, jest-mock-extended, ts-jest
A README file for the nestjs-slack-webhook code repository. View Code
Nest.js + Slack Incoming Webhook
npm install nestjs-slack-webhook
@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,
) {}
}
PRs accepted.
MIT © g59