Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
50
4.17%
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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.