discord-bettermarkdown
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

Discord Markdown

Better Markdown to text chat Discord.

npm i discord-bettermarkdown@latest

Breaking changes

v1.x.x
- const BetterMarkdown = require('discord-bettermarkdown');
- const markdown = new BetterMarkdown();
- markdown.format('Hello World', 'DEFAULT', 'RED', null, true);
v2.x.x
+ const BetterMarkdown = require('discord-bettermarkdown');
+ 'Hello World'.red

ok it's the same way with the colors module

Screenshots

colors and styles!

text colors

  • red
  • green
  • yellow
  • blue
  • pink
  • cyan
  • white
  • gray

background colors

  • bgDarkBlue
  • bgOrange
  • bgMarbleBlue
  • bgGreyishTurquoise
  • bgGray
  • bgIndigo
  • bgLightGray
  • bgWhite

styles

  • bold
  • underline
  • reset

Using ?

Patch String

const BetterMarkdown = require('discord-bettermarkdown');

Send Message (discord.js)

const HelloWorld = 'Hello World'.red.bgWhite.bold.underline;
console.log(HelloWorld); // it's work!
channel.send(`\`\`\`ansi\n${HelloWorld}\`\`\``);
// Send `Hello World` with color red, background color white, bold, underline

Credit: Here

Package Sidebar

Install

npm i discord-bettermarkdown

Weekly Downloads

104

Version

2.1.1

License

ISC

Unpacked Size

17.7 kB

Total Files

7

Last publish

Collaborators

  • aikochan2k6