Awesome print: like clojure.pprint, but awesome
Switch branches/tags
Nothing to show
Clone or download
Latest commit 9b77f3e Oct 26, 2015
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc update readme Sep 4, 2014
src/aprint allow dispatch like print-method does Oct 26, 2015
test/aprint rewrite & rebrand Sep 4, 2014
.gitignore initial Aug 30, 2014
LICENSE initial Aug 30, 2014
README.md You got the credits interverted Mar 3, 2015
project.clj start 0.1.4 Oct 26, 2015

README.md

aprint: awesome print

screenshot

Usage

Clojars Project

(use 'aprint.core)
(aprint object)

;; or just like (pp)
(ap)

Why not just clojure.pprint/pprint?

Look, I have some data:

data

With pprint it takes 3+ awful screens:

pprint1

pprint2

pprint3

pprint4

With aprint:

aprint

Awesome, yeah?

Notes

If you'd like to get same layout without color codes:

;; n stands for "normalized" print
(nprint issues)

Hint

Add this to your ~/.lein/profiles.clj

{:user {:injections [(use 'aprint.core)]}}

Acknoledgements

  • @jdillon for awesome jline2
  • @hlship for thinking in similar way: pretty

License

Copyright © 2014 Vlad Bokov

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.