Skip to content

ReScript bindings to the 'Chalk' string style library

License

Notifications You must be signed in to change notification settings

austindd/rescript-chalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published