Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.34 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.34 KB

antsy

Clojars Project Clojars Downloads GitHub Contributors

Simple ANSI escape code library.

Install

Add the following to your project.clj file:

[io.logicblocks/antsy "0.0.16"]

Documentation

Usage

(require '[antsy.core :as antsy])

(println (str
           antsy/bold-escape-sequence
           antsy/red-bg-escape-sequence
           "Important!"
           antsy/reset-escape-sequence))

(println (antsy/bold "Important!"))
(println (antsy/red-fg "Something went wrong..."))

(println (antsy/-> "[Incoming Message]" :bold :green-fg))

See the API Docs for a more complete getting started guide.

Credits

antsy is heavily inspired by pretty and clansi.

License

Copyright © 2019 LogicBlocks Maintainers

Distributed under the terms of the MIT License.