cons-colours

1.0.4 • Public • Published

COLOURS

Tool To Color Console Log Test

SETUP

Install With

npm i cons-colours

Define The App With

const {colours} = require('cons-colours')

Create Color maker With

const maker = new colours({
	type: "fg" //background/bg, font/fg 
})

Text Editing

maker.hidden("Hello World")
maker.blink("Hello World")
maker.reverse("Hello World")
maker.underscore("Hello World")
maker.dim("Hello World")
maker.bright("Hello World")
maker.reset("Hello World")

Text Coloring

maker.black("Hello World")
maker.red("Hello World")
maker.green("Hello World")
maker.yellow("Hello World")
maker.blue("Hello World")
maker.magenta("Hello World")
maker.cyan("Hello World")
maker.crimson("Hello World")
maker.white("Hello World")

FULL CODE

const {colours} = require('cons-colours')

const maker = new colours({
	type: "fg" //background/bg, font/fg
})

console.log(maker.red("Hello World") + maker.reset())

You Should See Colored "Hello World" In Console/Terminal

Readme

Keywords

Package Sidebar

Install

npm i cons-colours

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

13.6 kB

Total Files

10

Last publish

Collaborators

  • filipinoakoyoutube