1.0.0 • Published 3 years ago

discord-escape v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

📥 Discord Escape

🔭 Escape formatting characters in order to send messages to discord based on regex.

MIT license

🚩 Installation:

npm install discord-escape

🛒 Sample code snippet:

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!