🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

discord-bettermarkdown

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-bettermarkdown

Create Discord Markdown with Colorful

2.1.1
latest
Source
npm
Version published
Weekly downloads
97
-2.02%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

discord.js

FAQs

Package last updated on 17 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts