{"repo":"weavejester/hashp","free":true,"listed":false,"github":"https://github.com/weavejester/hashp","clone":"git clone https://github.com/weavejester/hashp.git","description":"A better \"prn\" for debugging","language":"Clojure","stars":494,"topics":["clojure","debugging"],"license":"MIT","category":"dev-tools","readme_excerpt":"Hashp Hashp is a better prn for debugging Clojure code. Inspired by projects like [Spyscope][], Hashp (ab)uses data readers to make it easier to get useful debugging data sent to STDERR. [spyscope]: https://github.com/dgrnbrg/spyscope Usage Once installed, you can add #p in front of any form you wish to print: It's faster to type than (prn ...) , returns the original result, and produces more useful output by printing the original form, function and line number: Installation tools.deps To use #p in a tools.deps project, add the following dependency to your project's deps.edn file: You will then need to install hashp before any other file is loaded. Leiningen To make #p globally available to all Leiningen projects, add the following to /.lein/profiles.clj : Boot To make #p globally available to all Boot projects, add the following to /.boot/profile.boot : Configuration The hashp.install/install! function may be given named options: There are several options supported: - :color? - set to true if the output should be in color. Defaults to true unless the [NO COLOR][] environment variable was set. - :disabled? - if true then #p will do exactly nothing. This is useful if you want to disable #p in a production environment with no loss of performance. Defaults to false. - :tag - a symbol used for the tag, defaults to 'p . - :template - a string that can be used to customize the format of #p . Defaults to: \"#{tag}[{ns}/{fn}:{line}] {form} ⇒ {value} - :writer - a Writer to use for the","default_branch":null,"files":null,"tree":[],"storefront":"/r/weavejester","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/weavejester/hashp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}