Useful set of string functions
Useful set of string functions
(human-date year month day)
Will make a human readable date
Will make a human readable date
(lorem-ipsum amount-of-words)
(lorem-ipsum amount-of-words rand-fn)
Generate lorem ipsum of words of a given size Accepts second parameter as a source of randomness. Default rand-int
Generate lorem ipsum of words of a given size Accepts second parameter as a source of randomness. Default rand-int
(number->english number-int)
Number to English
Number to English
(number-ordinal->english number-int)
Number ordinal to English
Number ordinal to English
(pluralize->as-ies root-str number-int)
Pluralize English with -ies suffix
Pluralize English with -ies suffix
(pluralize->as-s root-str number-int)
Pluralize English with -s suffix
Pluralize English with -s suffix
(remove-new-lines datum)
Will remove new lines from text
Will remove new lines from text
(slugify some-text)
(slugify some-text split-kind)
Will slugify given string. Will remove non ASCII characters
Will slugify given string. Will remove non ASCII characters
(truncate-words-by-chars amount input)
(truncate-words-by-chars amount input ending)
will intelligently truncate (without splitting words, with appending ... in the end, if exists)
will intelligently truncate (without splitting words, with appending ... in the end, if exists)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close