# slack-webhook-notify

> sending message via slack webhook

Latest version **1.0.1** (published 2017-11-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install slack-webhook-notify
pnpm add slack-webhook-notify
yarn add slack-webhook-notify
bun add slack-webhook-notify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2017-11-16 |
| First published | 2017-11-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yongsheng Xu |
| Maintainers | chux0519 |

## Links

- npm: https://www.npmjs.com/package/slack-webhook-notify
- npm.io page: https://npm.io/package/slack-webhook-notify

## Dependencies (2)

- [@slack/client](https://npm.io/package/@slack/client.md) ^3.14.2
- [simple-json-logger](https://npm.io/package/simple-json-logger.md) ^1.2.0

## Recent versions

- 1.0.1 (latest) — 2017-11-16
- 1.0.0 — 2017-11-16

## README

### Slack Notify  
sending message via slack webhook

### install  
> npm install --save slack-webhook-notify

### Usage
- import  
```
const {slackNotify, SlackNotifierConstructor} = require('slack-webhook-notify')
```

- use constructor  
```
const sender = SlackNotifierConstructor('your url')
try{
  const responseBody = await sender.send('hello slack')
} catch(e) {
  console.error(e)
}
```

- use method
```
try{
  const responseBody = await slackNotify('your url', 'hello slack')
} catch(e) {
  console.error(e)
}
```

- configureation(disable logger)
```
const sender = SlackNotifierConstructor('your url', {log: false})
// or
await slackNotify('your url', 'hello slack', {log: false})
```

---
_Source: https://npm.io/package/slack-webhook-notify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
