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).
- Host: GitHub
- URL: https://github.com/swiiz/discord-escape
- Owner: Swiiz
- License: mit
- Created: 2021-05-11T11:23:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-28T23:46:00.000Z (almost 3 years ago)
- Last Synced: 2025-08-17T00:40:02.249Z (10 months ago)
- Topics: discord, escape, formatting, nodejs, regex
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/discord-escape
- Size: 8.79 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
[](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!