1.1.0 • Published 1 year ago

colorium v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

⚙️ Installation

npm i colorium

📖 Documentation

ES6

import colorium from 'colorium';

colorium('Hello world!').blue.log();

Commonjs

const colorium = require('colorium');

colorium('Hello world!').blue.log();

Examples

colorium('Hello world!').red.log();
const log = console.log;
log(colorium('Hello world!').red);
console.log("Hello world!".red.underline)

🙌 All styles

Modifiers

  • reset
  • bold
  • dim
  • italic
  • underline
  • blink
  • inverse
  • hidden
  • strike
  • overline

Foreground Colors

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • gray

Lighter Foreground Colors

  • lightBlack
  • lightRed
  • lightGreen
  • lightYellow
  • lightBlue
  • lightMagenta
  • lightCyan
  • lightWhite

Background Colors

  • bgBlack
  • bgRed
  • bgGreen
  • bgYellow
  • bgBlue
  • bgMagenta
  • bgCyan
  • bgWhite
  • bgGray

Lighter Background Colors

  • bgLightBlack
  • bgLightRed
  • bgLightGreen
  • bgLightYellow
  • bgLightBlue
  • bgLightMagenta
  • bgLightCyan
  • bgLightWhite

Custom Foreground Colors

  • rgb()
colorium('Hello world!').rgb(12, 234, 23).log()
  • hex()
colorium('Hello world!').hex('#B9EDDD').log();

Support me on Patreon - Check out my socials

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.8

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago