Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cliffy/examples/ansi/color_themes.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
File
import { colors } from "../../ansi/colors.ts";
// Define theme colors.const error = colors.bold.red;const warn = colors.bold.yellow;const info = colors.bold.blue;
// Use theme colors.console.log(error("[ERROR]"), "Some error!");console.log(warn("[WARN]"), "Some warning!");console.log(info("[INFO]"), "Some information!");
// Override theme colors.console.log(error.underline("[ERROR]"), "Some error!");console.log(warn.underline("[WARN]"), "Some warning!");console.log(info.underline("[INFO]"), "Some information!");