# discord-escape

> Escape discord message to avoid unwanted mention/spoiler/bold... formatting

Latest version **1.0.0** (published 2021-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install discord-escape
pnpm add discord-escape
yarn add discord-escape
bun add discord-escape
```

## 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.0.0 |
| Published | 2021-05-11 |
| First published | 2021-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Swiiz |
| Maintainers | swiiz |
| Keywords | discord, escape, escaper, markdown, mention |

## Links

- npm: https://www.npmjs.com/package/discord-escape
- Repository: https://github.com/Swiiz/discord-escape
- Homepage: https://github.com/Swiiz/discord-escape#readme
- Issues: https://github.com/Swiiz/discord-escape/issues
- npm.io page: https://npm.io/package/discord-escape

## Recent versions

- 1.0.0 (latest) — 2021-05-11

## README

# 📥 Discord Escape

🔭 Escape formatting characters in order to send messages to discord based on regex.

[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)

🚩 Installation:
```
npm install discord-escape
```

🛒 Sample code snippet:
```JS
const escape = require("../index");

console.log(escape("@everyone **This is a test** __yeah!__ `ok?`"));
// @​everyone \*\*This is a test\*\* \_\_yeah\!\_\_ \`ok?\`
//  ^ Invisible character between @ and everyone
```

### 📣 Documentation
Really needed?

### ✅ Todo:
Make a feature request on github if you think something is missing!

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