(elem-daily-instant label ms style)
returns a styled label and instant
(elem-daily-instant "TIME:" (h/time-ms) {}) => string?
returns a styled label and instant (elem-daily-instant "TIME:" (h/time-ms) {}) => string?
(elem-ns-duration label ns style)
returns a styled label and duration
(elem-ns-duration "DURATION:" 100000 {}) => string?
returns a styled label and duration (elem-ns-duration "DURATION:" 100000 {}) => string?
(elem-position {:keys [tag function namespace line column]} style)
creates a style position element
(elem-position {:tag :hello :namespace 'user :function 'add :column 10 :line 11} {:text :white}) => string?
creates a style position element (elem-position {:tag :hello :namespace 'user :function 'add :column 10 :line 11} {:text :white}) => string?
(style-ansi {:keys [text background bold] :as style :or {background :none}})
constructs the style used in console
(style-ansi {:text :blue :background :white}) => [:normal :on-white :blue]
constructs the style used in console (style-ansi {:text :blue :background :white}) => [:normal :on-white :blue]
(style-heading text {:keys [highlight] :as style})
returns the text for a style
(style-heading "Hello" {:highlight true :text :blue :background :white}) => ["[22;47;34m Hello [0m" 7]
returns the text for a style (style-heading "Hello" {:highlight true :text :blue :background :white}) => ["[22;47;34m Hello [0m" 7]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close