Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
Module

x/hypixel/helpers/MinecraftFormatting.ts>MinecraftColorAsHex

With thorough IntelliSense support & 100% test coverage, this is an unopinionated async/await API wrapper for Hypixel's Public API. It is developed in TypeScript complete with documentation, typed interfaces for all API responses (and an OpenAPI 3.0 schema!), built-in rate-limit handling, flexible cache support, helper functions, and support for undocumented endpoints.
Latest
enum MinecraftColorAsHex
import { MinecraftColorAsHex } from "https://deno.land/x/hypixel@v3.1.1/helpers/MinecraftFormatting.ts";

An enum that'll let you you get a hex color code for a specific Minecraft color formatting sequence.

Members

ยง0 = "000000"
ยง1 = "0000AA"
ยง2 = "00AA00"
ยง3 = "00AAAA"
ยง4 = "AA0000"
ยง5 = "AA00AA"
ยง6 = "FFAA00"
ยง7 = "AAAAAA"
ยง8 = "555555"
ยง9 = "5555FF"
ยงa = "55FF55"
ยงb = "55FFFF"
ยงc = "FF5555"
ยงd = "FF55FF"
ยงe = "FFFF55"
ยงf = "FFFFFF"