std/colors
2019-01-15 16:16:52 -05:00
..
example.ts Reorg colors (#96) 2019-01-10 20:18:21 -05:00
mod.ts Reorg colors (#96) 2019-01-10 20:18:21 -05:00
README.md Reorg colors (#96) 2019-01-10 20:18:21 -05:00
styles.ts Happy New Year (#58) 2019-01-02 09:56:17 -05:00
test.ts colors: add test cases (#120) 2019-01-15 16:16:52 -05:00

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.