Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/camsaul/pretty
A standard protocol for making custom types in Clojure pretty print in the REPL and elsewhere.
https://github.com/camsaul/pretty
clojure pretty-print pretty-printer pretty-printing protocol repl
Last synced: 23 days ago
JSON representation
A standard protocol for making custom types in Clojure pretty print in the REPL and elsewhere.
- Host: GitHub
- URL: https://github.com/camsaul/pretty
- Owner: camsaul
- License: epl-2.0
- Created: 2019-06-15T04:34:51.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-28T00:09:56.000Z (over 3 years ago)
- Last Synced: 2024-09-28T19:35:54.918Z (about 1 month ago)
- Topics: clojure, pretty-print, pretty-printer, pretty-printing, protocol, repl
- Language: Clojure
- Size: 16.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
[![Downloads](https://versions.deps.co/camsaul/pretty/downloads.svg)](https://versions.deps.co/camsaul/pretty)
[![Dependencies Status](https://versions.deps.co/camsaul/pretty/status.svg)](https://versions.deps.co/camsaul/pretty)
[![Circle CI](https://circleci.com/gh/camsaul/pretty.svg?style=svg)](https://circleci.com/gh/camsaul/pretty)
[![License](https://img.shields.io/badge/license-Eclipse%20Public%20License-blue.svg)](https://raw.githubusercontent.com/camsaul/pretty/master/LICENSE)
[![cljdoc badge](https://cljdoc.org/badge/pretty/pretty)](https://cljdoc.org/d/pretty/pretty/CURRENT)[![Clojars Project](https://clojars.org/pretty/latest-version.svg)](http://clojars.org/pretty)
A standard protocol for making custom types in Clojure pretty print in the REPL and elsewhere.
```clj
(require '[pretty.core :as pretty])(defrecord MyInt [i]
pretty/PrettyPrintable
(pretty [_] (list 'my-int i)))(MyInt. 100)
;; -> (my-int 100)
```