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

std/examples/colors.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
File
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/** An example using `std/fmt/colors`. * * @module */
import { bgBlue, bold, italic, red } from "../fmt/colors.ts";
if (import.meta.main) { console.log(bgBlue(italic(red(bold("Hello world!")))));}