(chopped s max-width)Truncates lines in a formatted paragraph at supplied max-width, adding ellipsis. Accounts for ansi sgr tags.
Truncates lines in a formatted paragraph at supplied max-width, adding ellipsis. Accounts for ansi sgr tags.
(hifi x)(hifi x opts)Hi-fidelity, pretty-printed string with syntax-coloring. Dispatches to fireworks.core/_p2
Hi-fidelity, pretty-printed string with syntax-coloring. Dispatches to fireworks.core/_p2
(print-hifi x)(print-hifi x opts)Prints a structurally formatted value with syntax-coloring based on user's preferred theme. Dispatches to fireworks.core/_p2.
In JVM Clojure, cljs(Node), and bb, print-hifi is sugar for:
(println (bling.core/hifi x))
In cljs (browser dev consoles), print-hifi is sugar for the the following:
(->> (bling.core/hifi x)
bling.browser/ansi-sgr-string->browser-dev-console-array
(.apply js/console.log js/console))
Prints a structurally formatted value with syntax-coloring based on user's
preferred theme. Dispatches to fireworks.core/_p2.
In JVM Clojure, cljs(Node), and bb, `print-hifi` is sugar for:
`(println (bling.core/hifi x))`
In cljs (browser dev consoles), `print-hifi` is sugar for the the following:
```Clojure
(->> (bling.core/hifi x)
bling.browser/ansi-sgr-string->browser-dev-console-array
(.apply js/console.log js/console))
```cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |