# discord-styles

> Simplified text styling for discord.

Latest version **1.0.1** (published 2021-03-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install discord-styles
pnpm add discord-styles
yarn add discord-styles
bun add discord-styles
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-03-19 |
| First published | 2021-03-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | squik |
| Maintainers | squik |
| Keywords | discord, styles, chalk, discord.js, discord-styles, ansi, discord-markdown |

## Links

- npm: https://www.npmjs.com/package/discord-styles
- Repository: https://github.com/squikjs/discord-styles
- Homepage: https://github.com/squikjs/discord-styles#readme
- Issues: https://github.com/squikjs/discord-styles/issues
- npm.io page: https://npm.io/package/discord-styles

## Alternatives

- [localforage](https://npm.io/package/localforage.md) — 6.2M weekly downloads
- [localforage-observable](https://npm.io/package/localforage-observable.md) — 30.8K weekly downloads
- [@y/y](https://npm.io/package/@y/y.md) — 30.1K weekly downloads
- [@metaobjectsdev/render](https://npm.io/package/@metaobjectsdev/render.md) — 3.5K weekly downloads
- [@ledgerhq/coin-algorand](https://npm.io/package/@ledgerhq/coin-algorand.md) — 1.1K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-03-19
- 1.0.0 — 2021-03-19

## README

# discord-styles

Simplified text styling for discord.

# Installation

```bash
# with npm
npm install discord-styles

# or with yarn
yarn add discord-styles
```

# Usage

````js
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';
    ```*/
````

---
_Source: https://npm.io/package/discord-styles · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
