Socket
Socket
Sign inDemoInstall

discord-bettermarkdown

Package Overview
Dependencies
31
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    discord-bettermarkdown

Create Discord Markdown with Colorful


Version published
Weekly downloads
118
increased by24.21%
Maintainers
1
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 17 Mar 2023

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc