1.0.1 • Published 5 years ago

slack-hook-notifier v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

slack-notifier

this is a very simple small pckage at the time. all you need is to install the package:

npm i slack-hook-notifier

import the library in your code:

var notify_slack = require('slack-hook-notifier');
notify("tessst notification.", "bug");

the first argument is the text of the notification, the second argument is the status of the notification.

in the environments variables add this variable: SLACK_WEBHOOK_URL=your_SLACK_WEBHOOK_URL


there are five main statuses you can use:

  • bug
  • alert
  • note
  • success