Liking cljdoc? Tell your friends :D

thereisnodot.utils.strings

Useful set of string functions

Useful set of string functions
raw docstring

human-dateclj

(human-date year month day)

Will make a human readable date

Will make a human readable date
sourceraw docstring

lorem-ipsumclj

(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
sourceraw docstring

number->englishclj

(number->english number-int)

Number to English

Number to English
sourceraw docstring

number->romanclj

(number->roman number-int)

Number to Roman

Number to Roman
sourceraw docstring

number-ordinal->englishclj

(number-ordinal->english number-int)

Number ordinal to English

Number ordinal to English
sourceraw docstring

pluralize->as-iesclj

(pluralize->as-ies root-str number-int)

Pluralize English with -ies suffix

Pluralize English with -ies suffix
sourceraw docstring

pluralize->as-sclj

(pluralize->as-s root-str number-int)

Pluralize English with -s suffix

Pluralize English with -s suffix
sourceraw docstring

remove-new-linesclj

(remove-new-lines datum)

Will remove new lines from text

Will remove new lines from text
sourceraw docstring

slugifyclj

(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
sourceraw docstring

truncate-words-by-charsclj

(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)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close