1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -05:00
denoland-deno/colors/README.md
Dmitry Sharshakov aka. sh7dm 43e92bb5a6 Happy New Year (denoland/deno_std#58)
Original: e8ec4f7f64
2019-01-02 09:56:17 -05:00

818 B

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-2019 the Deno authors. All rights reserved. MIT license.