1.2.3 • Published 6 months ago

@n4it/utility-slack-alerts v1.2.3

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
6 months ago

@n4it/utility-slack-alerts

A NestJS module for creating and sending alerts to Slack.

Installation

To install the module, use npm:

npm install @n4it/utility-slack-alerts

Usage

Importing and Configuring the Module

To use the SlackAlertsModule, import it into your NestJS module and configure it using the register method.

import { SlackAlertsModule } from "@n4it/utility-slack-alerts";
import { Module } from "@nestjs/common";

@Module({
  imports: [
    SlackAlertsModule.register({
      url: "https://hooks.slack.com/services/XXXXXXX/XXXXXX/XXXXXX"
    }),
  ],
})
export class AppModule {}

You can now use it:

import { SlackAlertService } from "@n4it/utility-slack-alerts";
import { Injectable } from "@nestjs/common";

@Injectable()
export class AppService {
  constructor(private readonly alertService: SlackAlertService) {}

  public send() {
    return this.alertService.sendErrorAlert({
        message: "My foo error",
    })
  }
}

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an issue on GitHub.

Support

If you have any questions or need support, you can contact us at info@n4it.nl.

1.2.3

6 months ago

1.2.2

6 months ago

1.2.1

6 months ago

1.2.0

6 months ago

1.1.4

8 months ago

1.1.3

8 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.7

10 months ago

1.0.7-y.0

10 months ago

1.0.7-alpha.5

10 months ago

1.0.7-alpha.3

10 months ago

1.0.7-alpha.2

10 months ago

1.0.7-alpha.1

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago