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

https://github.com/danielkov/discolor

🎨 Discolor - Colorize Terminal Output
https://github.com/danielkov/discolor

color nodejs terminal

Last synced: about 2 months ago
JSON representation

🎨 Discolor - Colorize Terminal Output

Awesome Lists containing this project

README

          

# 🎨 Discolor - Colorize Terminal Output

This is a very minimal library - 29 lines to easily add 9 colors to your terminal output.

Here's how to use it:

```ts
import { green } from 'discolor';

console.log(green('I will be green'));
```

Possible colors you can use:

1. black
2. red
3. green
4. yellow
5. blue
6. magenta
7. cyan
8. white
9. gray