New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-slack-webhook

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-slack-webhook

📢 Send a message directly to a Slack channel from a React app

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

react-slack-webhook

📢 Send a message directly to a Slack channel from a React app

downloads npm version MIT license Coverage Status


📦 Installation

$ npm install react-slack-webhook
$ yarn add react-slack-webhook
$ pnpm add react-slack-webhook

🚀 Usage

import { Slack } from 'react-slack-webhook';
import { SLACK_WEBHOOK_URL } from '@/constants'

...
const onClick = () => {
  const slack = new Slack(SLACK_WEBHOOK_URL)

  return slack.send({
      text: 'hello, world',
      channel: '#channel',
      username: 'bot',
      icon_emoji: ':robot_face:',
  })
}
...

More Example


🎈 Props

KeyDefaultType
text"hello, world"string
channel"#general"string
username"bot"string
icon_emoji":robot_face:"string

📝 License

MIT. Made with ❤️ by cmg8431

Keywords

notifications

FAQs

Package last updated on 12 Apr 2024

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