Skip to content

squikjs/discord-styles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

discord-styles

Simplified text styling for discord.

Installation

# with npm
npm install discord-styles

# or with yarn
yarn add discord-styles

Usage

const styles = require("discord-styles"); // import

styles.bold("Hey there!"); // -> **Hey there!**
styles.italic("Hey there!"); // -> *Hey there!*
styles.underline("Hey there!"); // -> __Hey there!__
styles.strikethrough("Hey there!"); // -> ~~Hey there!~~
styles.block("Hey there!"); // -> `Hey there!`
styles.quote("Hey there!"); // -> > Hey there!
styles.multilineQuote("Hey there!"); // -> >>> Hey there!
styles.spolier("Hey there!"); // -> ||Hey there!||

styles.codeblock(
  "const name = 'squik';" /* Content */,
  "javascript" /* <-- Optional Coding Lang Option*/
); /* -> ```javascript
    const name = 'squik';
    ```*/

About

Simplified text styling for discord.

Resources

License

Stars

Watchers

Forks