Skip to content
/ coloterm Public

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!

License

Notifications You must be signed in to change notification settings

Ra-Wo/coloterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published