Liking cljdoc? Tell your friends :D

Clojars CI

Sometimes, neatness counts

If you are trying to puzzle out a stack trace, pick a critical line of text out of a long stream of console output, or compare two streams of binary data, a little bit of formatting can go a long way.

That's what clj-commons/pretty is for. It adds support for pretty output where it counts:

  • Readable output for exceptions
  • ANSI font and background color support
  • Hex dump of binary data
  • Hex dump of binary deltas
  • Formatting data into columns

Example

Pretty is compatible with Clojure 1.10 and above.

Parts of Pretty can be used with Babashka, such as the clj-commons.ansi namespace; however, Babashka runs in an interpreter and its approach to exceptions is incompatible with JVM exceptions.

Can you improve this documentation? These fine people already did:
Howard M. Lewis Ship, The Alchemist & Bjarte Johansen
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close