camel-snake-kebab icon indicating copy to clipboard operation
camel-snake-kebab copied to clipboard

suggestion: support for plain text output

Open timrobinson33 opened this issue 4 years ago • 0 comments

Converting to plain text would be useful for constructing user messages e.g.

(defn validate-field [object attr]
  (when-not (object attr)
    (str (csk/->plain-text attr) " is mandatory")))

(validate-field user :work-email-address)
=> "Work email address is mandatory"

You'd probably need upper case, lower case, sentence case and title case.

timrobinson33 avatar Jan 10 '21 11:01 timrobinson33