@l.baste/console-color
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Console color

Add colors in console

Usage

import { cc } from '@l.baste/console-color';
// or
// const { cc } = require('@l.baste/console-color');

// Add tag to start new color, background or action
cc.log('$<green>Hello $<yellow>world $<red>color $<reset>!');

cc.log('$<palette90>hello world ! palette');
cc.log('$<0;255;255>hello world ! rgb');

cc.log('$<bgPalette90>hello world ! background palette');
cc.log('$<bg0;255;255>hello world ! background rgb');

Tags

Actions:

  • $<reset> // Reset color and background.
  • $<bright>
  • $<dim>
  • $<underscore>
  • $<blink>
  • $<reverse>
  • $<hidden>

Colors:

  • $<black>
  • $<red>
  • $<green>
  • $<yellow>
  • $<blue>
  • $<magenta>
  • $<cyan>
  • $<white>
  • $<gray>
  • $<paletteV> // V -> 0-255
  • $<R;G;B> // R -> 0-255; G -> 0-255; B -> 0-255

Backgounds

  • $<bgBlack>
  • $<bgRed>
  • $<bgGreen>
  • $<bgYellow>
  • $<bgBlue>
  • $<bgMagenta>
  • $<bgCyan>
  • $<bgWhite>
  • $<bgGray>
  • $<bgPaletteV> // V -> 0-255
  • $<bgR;G;B> // R -> 0-255; G -> 0-255; B -> 0-255

Readme

Keywords

Package Sidebar

Install

npm i @l.baste/console-color

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

8.85 kB

Total Files

6

Last publish

Collaborators

  • l.baste