tiny-colors
A tiny library providing the basic ANSI colors for the terminal.
Last updated a year ago by fabiospampinato .
Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install tiny-colors 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.1.2                                ...           latest (a year ago)

7 Versions

  • 2.1.2                                ...           a year ago
  • 2.1.1                                ...           a year ago
  • 2.1.0                                ...           a year ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

Copyright 2013 - present © cnpmjs.org | Home |