The puget
CLI can be used to pprint EDN values with colors. It is based on the
puget library.
brew install borkdude/brew/puget
See scoop-clojure.
Grab the binary for your OS at Github releases.
Pipe EDN to stdin. Provide options to puget.printer/pprint
using --opts
.
E.g.:
$ echo '[1 2 3]' | puget
This will invoke puget.printer/pprint
. By default it uses colorized output which you can disable with:
$ echo '[1 2 3]' | puget --opts '{:print-color false}'
Copyright © 2020 Michiel Borkent
Distributed under the EPL License, same as Clojure. See LICENSE.