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.
- Host: GitHub
- URL: https://github.com/itsmaheshkariya/color
- Owner: itsmaheshkariya
- Created: 2020-05-22T18:52:15.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T19:04:53.000Z (about 6 years ago)
- Last Synced: 2025-04-22T12:37:01.886Z (about 1 year ago)
- Topics: console, deno, javascript, library, typescript
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# 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"))
```

```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"))
```

```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'))
```
