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