/slack-notifier

Simple module to send notifications and messages to Slack service using web hooks.

Primary LanguageJavaScriptMIT LicenseMIT

Slack Notifier

Slack Notifier sends notifications and messages to Slack service using Incoming Webhook. It can be used both on the server (Node.js) and the client-side (Browser).

It is basically designed for notification messages, not support file attachment yet. You may also use this for error reporting purpose for your production environment because

  • error stack is sent in code format when an Error object is thrown to the send() method.
  • you can turn on/off the service globally as the enabled option can be given through the configure() method.

Install with npm

npm install slack-notifier --save

Install with bower

bower install slack-notifier --save

CDN

<script src="//cdn.jsdelivr.net/npm/slack-notifier@0.0.3/slack-notifier.min.js" type="text/javascript"></script>

Usage

Check the example files:

License

Released under the MIT License.