slack-easy-notifier
Easiest way to send messages to slack
How to use
- Install the module:
npm install slack-easy-notifier --save
- Only set your webhook url that you can find on Slack's incomming webhook integration and set your username.
- Enjoy!
//import the module to your projectvar slack = ;//set your webhook and username which will be displayed on the messages.; //post a message to slack//slack('Message to post', '#slack-channel', ':icon:');;
You'll see a message similar to this one.
You only need to set webhook and username variables once. After that, you can import the module anywhere into your app to post messages.