diff --git a/doc/projects.md b/doc/projects.md index 271441c2..a0d746d4 100644 --- a/doc/projects.md +++ b/doc/projects.md @@ -34,6 +34,7 @@ The following libraries and projects are known to work with babashka. - [environ](#environ) - [gaka](#gaka) - [failjure](#failjure) + - [pretty](#pretty) - [Pods](#pods) - [Projects](#projects-1) - [babashka-test-action](#babashka-test-action) @@ -450,6 +451,24 @@ Working with failed computations in Clojure. (f/fail "foo") ``` +### [pretty](https://github.com/AvisoNovate/pretty) + +The `io.aviso.ansi` namespace provides ANSI font and background color support. + +``` clojure +(require '[babashka.deps :as deps]) + +(deps/add-deps + '{:deps {io.aviso/pretty {:mvn/version "0.1.36"}}}) + +(require '[io.aviso.ansi :as ansi]) + +(println + (str "The following text will be " + ansi/bold-red-font "bold and red " + ansi/reset-font "but this text will not.")) +``` + ## Pods [Babashka pods](https://github.com/babashka/babashka.pods) are programs that can