Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rescript-chalk

ReScript bindings to the Chalk library for displaying styled text in the terminal. Includes colors, background colors, and other modifiers like underline and italic font styles.

Usage

Just start with the base value, Chalk.chalk, and then build up the styles you want using Chalk's style functions.

let style = {
  open Chalk
  chalk->keyword(#palegreen)->bgHsl(~h=260, ~s=60, ~l=50)->italic->bold
}

let fancyText = Chalk.apply(style, "A picture is worth a thousand words")

Js.log(fancyText)

About

ReScript bindings to the 'Chalk' string style library

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages