# slack-ext-updatable-message

> Updatable messages for Slack. Awesome!

Latest version **1.5.8** (published 2020-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install slack-ext-updatable-message
pnpm add slack-ext-updatable-message
yarn add slack-ext-updatable-message
bun add slack-ext-updatable-message
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.8 |
| Published | 2020-02-01 |
| First published | 2019-06-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.2.4 |
| Dependencies | 1 |
| Unpacked size | 10.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kees C. Bakker |
| Maintainers | keestalkstech |
| Keywords | Slack, messaging, updates |

## Links

- npm: https://www.npmjs.com/package/slack-ext-updatable-message
- Repository: https://github.com/KeesCBakker/slack-ext
- Homepage: https://github.com/KeesCBakker/slack-ext#readme
- Issues: https://github.com/KeesCBakker/slack-ext/issues
- npm.io page: https://npm.io/package/slack-ext-updatable-message

## Dependencies (1)

- [slack](https://npm.io/package/slack.md) ^11.0.2

## Recent versions

- 1.5.8 (latest) — 2020-02-01
- 1.5.6 — 2020-02-01
- 1.5.4 — 2019-06-23
- 1.5.3 — 2019-06-23
- 1.5.2 — 2019-06-23
- 1.5.1 — 2019-06-23
- 1.4.17 — 2019-06-09
- 1.4.16 — 2019-06-09
- 1.4.15 — 2019-06-09

## README

# Slack EXT: Updatable Message
Create awesome interactions with by updating your slack messages.

## Installation
Install it using NPM:
```shell
npm install --save slack-ext-updatable-message
```

## Usage
Usage is really easy. You can send anything you can send with the Slack API, we'll do the administration:
```js
const { UpdatableMessage } = require("slack-ext-updatable-message");

// provide us a token or an instance of the Slack Api and the channelId
const sender = new UpdatableMessage("token", channelId);

// send asynchronously
sender.send('Let me check...');

// perform long operations a send feeback
for(var i = 1; i < 10; i++){
    // long operation
    sender.send(`Procssing, we're on ${i}%`);
}

await sender.send('Finished!');
```

# Notes
There are some choices we've made:
- Awaiting is optional, but if you want to make sure something really happed, await it.
- If multiple updates come in when sending (without `await`), the last available message will be send upon completion.

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