Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno_cache/deps.ts>colors.rgb8

A TypeScript implementation of Deno CLI's module cache
Go to Latest
function colors.rgb8
import { colors } from "https://deno.land/x/deno_cache@0.4.1/deps.ts";
const { rgb8 } = colors;

Set text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit

Parameters

str: string

text color to apply paletted 8bit colors to

color: number

code

Returns

string