Home

Awesome

Warning

This repo is no longer maintained, please check Mewzax's fork

Chalk

A terminal string colorizer for the V language.

Installation

With vpm:

v install etienne_napoleone.chalk

Usage

Chalk offers three functions:

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: