Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Starefossen/node-slackr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slackr

Build status Codacy grade Codacy coverage NPM downloads NPM version Node version Dependency status

Dependency free Slack notification messaging library for Node.js. Just put the webhook URI into an environment variable and you are good to go! Send Slack notifications like a boss 😎

Install

$ npm install slackr --save

Configure

Put your Slack webhook URI into the SLACK_WEBHOOK_URI environment variable.

Usage

const slackr = require('slackr');

Simple

slackr.string('This is my message').then(response => {
  console.log(response.code, response.body);
});

Advanced

const data = {
  title: 'This is my title',
  text: 'This is my message',
  attachments: [...],
};

slackr(data).then(response => {
  console.log(response.code, response.body);
});

Message Formatting

About

Send incoming Slack messages like a boss!

Resources

License

Stars

Watchers

Forks

Packages

No packages published