coloterm

1.0.5 • Public • Published

ColoTerm

ColoTerm is a small JavaScript Code that replace the old console.log() function, with ColoTerm add a nice color and amazing background color to your terminal. Make it Colored!

Installation

Use the package manager npm to install ColoTerm.

npm i coloterm

text colors

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

bright text colors

• brightRed • brightGreen • brightYellow • brightBlue • brightMagenta • brightCyan • brightWhite

background colors

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

bright background colors

• brightRed • brightGreen • brightYellow • brightBlue • brightMagenta • brightCyan • brightWhite

Usage

const coloterm = require('coloterm');

// Print 'text' to terminal
coloterm.log('this is text', {
   color: red,
   background: white
})

// return 'text' after colored then print it to terminal
const text = coloterm.text('this is text', {
   color: red,
   background: white
   });
console.log(text)

Readme

Keywords

Package Sidebar

Install

npm i coloterm

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

2.88 kB

Total Files

3

Last publish

Collaborators

  • rachidoudouch