An open API service indexing awesome lists of open source software.

https://github.com/swiiz/discord-escape

πŸ”­ Easily escape formatting characters in order to send messages to discord (made with regexs).
https://github.com/swiiz/discord-escape

discord escape formatting nodejs regex

Last synced: 10 months ago
JSON representation

πŸ”­ Easily escape formatting characters in order to send messages to discord (made with regexs).

Awesome Lists containing this project

README

          

# πŸ“₯ Discord Escape

πŸ”­ Escape formatting characters in order to send messages to discord based on regex.

#### NEW: Now supports headings, bullet list, numbered list
New features only works if building from source (npm version is not up to date)

[![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("discord-escape");

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!