1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/colors
2018-12-24 10:28:01 -05:00
..
example.ts Add colors example (denoland/deno_std#31) 2018-12-19 13:20:06 -05:00
main.ts Add colors module (denoland/deno_std#30) 2018-12-18 23:30:44 -05:00
main_test.ts Make compatible with latest deno (denoland/deno_std#41) 2018-12-23 18:49:46 -05:00
README.md Format (denoland/deno_std#42) 2018-12-24 10:28:01 -05:00
styles.ts Add colors module (denoland/deno_std#30) 2018-12-18 23:30:44 -05:00

colors

Is a basic console color library intended for Deno. It is inspired by packages like 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 the Deno authors. All rights reserved. MIT license.