Skip to content

Swiiz/discord-escape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📥 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

🚩 Installation:

npm install discord-escape

🛒 Sample code snippet:

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!

About

🔭 Easily escape formatting characters in order to send messages to discord (made with regexs).

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •