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

x/cliffy/ansi/mod.ts>colors

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
variable colors
import { colors } from "https://deno.land/x/cliffy@v1.0.0-rc.3/ansi/mod.ts";

Chainable colors module.

import { colors } from "./mod.ts";

console.log(colors.blue.bgRed.bold('Welcome to Deno.Land!'));

If invoked as method, a new Ansi instance will be returned.

import { Colors, colors } from "./mod.ts";

const myColors: Colors = colors();
console.log(myColors.blue.bgRed.bold('Welcome to Deno.Land!'));