# slack-remove-formatting

> Remove Slack message formatting.

Latest version **0.2.0** (published 2018-08-23) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install slack-remove-formatting
pnpm add slack-remove-formatting
yarn add slack-remove-formatting
bun add slack-remove-formatting
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2018-08-23 |
| First published | 2016-05-01 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Valérian Galliat |
| Maintainers | valeriangalliat |
| Keywords | slack |

## Links

- npm: https://www.npmjs.com/package/slack-remove-formatting
- Repository: https://github.com/stdbot/slack-remove-formatting
- Issues: https://github.com/stdbot/slack-remove-formatting/issues
- npm.io page: https://npm.io/package/slack-remove-formatting

## Recent versions

- 0.2.0 (latest) — 2018-08-23
- 0.1.1 — 2016-05-01
- 0.1.0 — 2016-05-01

## README

# Remove [Slack][slack] message [formatting][formatting] [![npm version](http://img.shields.io/npm/v/slack-remove-formatting.svg?style=flat-square)](https://www.npmjs.org/package/slack-remove-formatting)

[slack]: https://slack.com/
[formatting]: https://api.slack.com/docs/formatting

Library version of [this code][code].

[code]: https://github.com/slackhq/hubot-slack/blob/596c4181ccb9f8423c15077e3df2e960cd9981eb/src/slack.coffee#L174-L213

## Usage

```js
const slack = require('@slack/client')
const makeRemoveFormatting = require('slack-remove-formatting')

const rtm = new slack.RtmClient(config.token)

rtm.on(slack.CLIENT_EVENTS.RTM.AUTHENTICATED, state => {
  const removeFormatting = makeRemoveFormatting(state)

  rtm.on(slack.RTM_EVENTS.MESSAGE, message => {
    const text = removeFormatting(message.text)
    console.log(text)
  })
})
```

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