Re-posting here. I ported Scala's best Pretty-Printing Library to Kotlin. It prints data classes into well-formatted ascii color trees (both with-headings and without) and supports user-customizeable width and overflow truncation. Currently, the library uses kotlin-reflect but I can add multiplatform support via kotlinx-serialization if there’s an ask.
https://github.com/deusaquilus/pprint-kotlin
K 14
👍 4
👌🏼 1
h
horse_badorties
01/03/2024, 7:06 AM
Kudos for the Black & White Printing option in times of climate crisis. 😄
l
Laxystem
01/21/2024, 5:43 PM
KTON when
Seriously tho, would really like to have this as an option for for configs, and such. Does the library support decoding data, too?
Laxystem
01/21/2024, 5:43 PM
oh and does it handle imports/contexts?
a
Alexander Ioffe
01/22/2024, 8:35 AM
Decoding? Imports? Contexts? I'm a bit confused. Could you give me some examples?