tiny-colors
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i tiny-colors

Weekly Downloads

40,472

Version

2.1.3

License

none

Unpacked Size

11.4 kB

Total Files

15

Last publish

Collaborators

  • fabiospampinato