🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more
Socket
Book a DemoInstallSign in
Socket

@discordjs/formatters

Package Overview
Dependencies
Maintainers
2
Versions
1041
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discordjs/formatters

A set of functions to format strings for Discord.

Source
npmnpm
Version
0.2.1-dev.1678666228-41077c9.0
Version published
Weekly downloads
222K
-14.69%
Maintainers
2
Weekly downloads
 
Created
Source

discord.js


Discord server npm version npm downloads Build status Code coverage

Vercel

About

@discordjs/formatters set of functions to format strings for Discord.

Installation

Node.js 16.9.0 or newer is required.

npm install @discordjs/formatters
yarn add @discordjs/formatters
pnpm add @discordjs/formatters

Example usage

import { codeBlock } from '@discordjs/formatters';

const formattedCode = codeBlock('hello world!');
console.log(formattedCode);

// Prints:
// ```
// hello world!
// ```

Contributing

Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.
See the contribution guide if you'd like to submit a PR.

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join our official discord.js Server.

FAQs

Package last updated on 13 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