Home

Awesome

Chalk

A terminal string colorizer for the V language.

Installation

With vpm:

v install Mewzax.chalk

Usage

Chalk offers three functions:

You can also use RGB and HEX values:

Example:

import chalk

// basic usage
println('I am really ' + chalk.fg('happy', 'green'))

// you can also nest them
println('I am really ' + chalk.fg(chalk.style('ANGRY', 'bold'), 'red'))

Available colors:

Available styles: