fabiospampinato / tiny-colors

A tiny library providing the basic ANSI colors for the terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tiny Colors

A tiny library providing the basic ANSI colors for the terminal.

Install

npm install --save tiny-colors

Colors

The following color functions are provided.

Foreground Background Modifiers
black bgBlack reset
red bgRed bold
green bgGreen dim
yellow bgYellow italic
blue bgBlue underline
magenta bgMagenta overline
cyan bgCyan inverse
white bgWhite hidden
gray bgGray strikethrough

Usage

import colors from 'tiny-colors';

// Unchained usage

console.log ( colors.bgMagenta ( colors.italic ( 'foo' ) ) );

// Chained usage

console.log ( colors.bgMagenta.italic ( 'foo' ) );

License

MIT © Fabio Spampinato

About

A tiny library providing the basic ANSI colors for the terminal.

License:MIT License


Languages

Language:TypeScript 65.4%Language:JavaScript 34.6%