mirror of
https://github.com/denoland/deno.git
synced 2024-11-27 16:10:57 -05:00
8dd76af9ab
Original:
|
||
---|---|---|
.. | ||
example.ts | ||
mod.ts | ||
README.md | ||
styles.ts | ||
test.ts |
colors
Is a basic console color module intended for Deno. It is inspired by chalk and colors on npm.
Usage
The main modules exports a single function name color
which is a function that
provides chaining to stack colors. Basic usage looks like this:
import { color } from "https://deno.land/x/std/colors/mod.ts";
console.log(color.bgBlue.red.bold("Hello world!"));
TODO
-
Currently, it just assumes it is running in an environment that supports ANSI escape code terminal coloring. It should actually detect, specifically windows and adjust properly.
-
Test coverage is very basic at the moment.
Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.