simple-slack-notification

0.0.2 • Public • Published

A lightweight wrapper for Slack Notification

Required:
  • Set up value for SLACK_TOKEN environment variable
$ vim ~/.bash_profile
  • Then, add the following line
export SLACK_TOKEN="<your slack token>"

Restart your terminal.

Usage:
var notification1 = mSlack
					.getSlackEnvelop()
					.setTitle("My First Notification Title")
					.setDescription("This is just the description that stands under the title")
					.setAttributes({
						Nome:  "Vinicius Lima",
						idade: 28
					})
					.exec();

Readme

Keywords

none

Package Sidebar

Install

npm i simple-slack-notification

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • vinicius.lima