slack-hook-notifier
v1.0.1
Published
slack notifier package. It use the slack http hooks for sending notifications to chats in slack.
Downloads
15
Maintainers
Readme
slack-notifier
this is a very simple small pckage at the time. all you need is to install the package:
npm i slack-hook-notifierimport 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
