1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/colors
2019-01-19 05:09:35 -05:00
..
example.ts Rework color API (denoland/deno_std#134) 2019-01-19 05:09:35 -05:00
mod.ts Rework color API (denoland/deno_std#134) 2019-01-19 05:09:35 -05:00
README.md Rework color API (denoland/deno_std#134) 2019-01-19 05:09:35 -05:00
test.ts Rework color API (denoland/deno_std#134) 2019-01-19 05:09:35 -05:00

colors

Is a basic console color module intended for Deno. It is inspired by chalk, kleur, and colors on npm.

Usage

The main modules exports several functions which can color the output to the console:

import { bgBlue, red, bold } from "https://deno.land/x/std/colors/mod.ts";

console.log(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.