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 theconfigure()
method.
npm install slack-notifier --save
bower install slack-notifier --save
<script src="//cdn.jsdelivr.net/npm/slack-notifier@0.0.3/slack-notifier.min.js" type="text/javascript"></script>
Check the example files:
- Node.js: /example/server.js
- Browser: /example/client.html
Released under the MIT License.