1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-25 16:49:18 -05:00
denoland-deno/colors
2019-01-03 23:13:21 -05:00
..
example.ts Add colors example (denoland/deno_std#31) 2018-12-19 13:20:06 -05:00
main.ts Happy New Year (denoland/deno_std#58) 2019-01-02 09:56:17 -05:00
main_test.ts Add testing module 2019-01-02 13:45:42 -05:00
README.md First pass on style guide (denoland/deno_std#66) 2019-01-03 23:13:21 -05:00
styles.ts Happy New Year (denoland/deno_std#58) 2019-01-02 09:56:17 -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/colors/main.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.