npm install nestjs-slack-webhook

Nest.js + slack-webhook

More from g59

g59 npm packages

Find the best node modules for your project.

Search npm

nestjs-slack-webhook

Nest...

Read more

Dependencies

Core dependencies of this npm package and its dev dependencies.

@9renpoto/tsconfig, @nestjs/testing, @types/jest, jest-mock-extended, ts-jest

Documentation

A README file for the nestjs-slack-webhook code repository. View Code

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