Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cithukyaw/slack-notifier
Simple module to send notifications and messages to Slack service using web hooks.
https://github.com/cithukyaw/slack-notifier
javascript notifications slack
Last synced: about 14 hours ago
JSON representation
Simple module to send notifications and messages to Slack service using web hooks.
- Host: GitHub
- URL: https://github.com/cithukyaw/slack-notifier
- Owner: cithukyaw
- License: mit
- Created: 2015-04-09T16:42:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-03T13:45:36.000Z (over 1 year ago)
- Last Synced: 2024-09-08T14:34:53.599Z (about 2 months ago)
- Topics: javascript, notifications, slack
- Language: JavaScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Slack Notifier
[![](https://data.jsdelivr.com/v1/package/npm/slack-notifier/badge)](https://www.jsdelivr.com/package/npm/slack-notifier)
**Slack Notifier** sends notifications and messages to [Slack](https://slack.com/) 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
## Usage
Check the example files:
- Node.js: [/example/server.js](https://github.com/cithukyaw/slack-notifier/blob/master/example/server.js)
- Browser: [/example/client.html](https://github.com/cithukyaw/slack-notifier/blob/master/example/client.html)## License
Released under the [MIT License](LICENSE).