escape-minecraft-colors
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Escape Minecraft Colors

Adds a function to escape Minecraft colors.

Installation

npm install escape-minecraft-colors
yarn install escape-minecraft-colors
pnpm install escape-minecraft-colors
bun install escape-minecraft-colors

Usage

import { escapeColor, Colors } from "escape-minecraft-colors";
const { escapeColor, Colors } = require("escape-minecraft-colors")

escapeColor("&aHello &bWorld"); // Output: "Hello World"
escapeColor("&aHello &bWorld", Colors.GREEN); // Output: "Hello &bWorld"
escapeColor("&aHello §bWorld", Colors.ALL, "§") // Output: "&aHello World"

Readme

Keywords

none

Package Sidebar

Install

npm i escape-minecraft-colors

Weekly Downloads

19

Version

1.0.1

License

MIT

Unpacked Size

5.44 kB

Total Files

10

Last publish

Collaborators

  • mrspeedy