An open API service indexing awesome lists of open source software.

https://github.com/itsmaheshkariya/color

Write Colourful Messages In console. Styling Console. It's easy to learn and use.
https://github.com/itsmaheshkariya/color

console deno javascript library typescript

Last synced: about 1 year ago
JSON representation

Write Colourful Messages In console. Styling Console. It's easy to learn and use.

Awesome Lists containing this project

README

          

![demoofqcom](https://unpkg.com/@qcom.io/qcom@1.0.36/qcom.png)
# color
### color Formatting in console / terminal

## **Installation in Deno**
```ts
import clc from 'https://deno.land/x/color/index.ts'
//import clc from 'https://deno.land/x/color/index.js' // For JS

console.log(clc.red.text("I am red"))
console.log(clc.blue.text("I am blue"))
console.log(clc.green.text("I am green"))
console.log(clc.yellow.text("I am yellow"))
console.log(clc.cyan.text("I am cyand"))
console.log(clc.magenta.text("I am magenta"))
console.log(clc.white.text("I am white"))
```
![Screenshot 2020-05-23 at 12 06 42 AM](https://user-images.githubusercontent.com/16520789/82700604-25b20680-9c8c-11ea-9d0a-619a6731a2db.png)

```ts
console.log(clc.bgRed.text("I am bgRred"))
console.log(clc.bgBlue.text("I am bgBlue"))
console.log(clc.bgGreen.text("I am bgGreen"))
console.log(clc.bgYellow.text("I am bgYellow"))
console.log(clc.bgCyan.text("I am bgCyand"))
console.log(clc.bgMagenta.text("I am bgMagenta"))
console.log(clc.bgWhite.text("I am bgWhite"))
```

![Screenshot 2020-05-23 at 12 09 59 AM](https://user-images.githubusercontent.com/16520789/82700613-28146080-9c8c-11ea-8af6-a22f61ef052e.png)

```ts
console.log(clc.reset.text("I am reset"))
console.log(clc.bright.text("I am bright"))
console.log(clc.dim.text("I am dim"))
console.log(clc.underscore.text("I am underscore"))
console.log(clc.blink.text("I am blink"))
console.log(clc.reverse.text("I am reverse"))
console.log(clc.hidden.text("I am hidden"))

console.log(clc.red.bgBlue.text('Hello World'))

```

![Screenshot 2020-05-23 at 12 11 22 AM](https://user-images.githubusercontent.com/16520789/82700609-277bca00-9c8c-11ea-8c49-8e4da537e21f.png)