🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

slackr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slackr

Send incoming Slack messages like a boss!

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

MIT Licensed

Keywords

slack

FAQs

Package last updated on 21 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts