MackeyRMS/string-util/1.0.0

StringUtil

caseInsensitiveContains : String -> String -> Bool
containsIgnoreCase : String -> String -> Bool
dasherize : String -> String

Return a string joined by dashes after separating it by its uppercase characters.

Any sequence of spaces or underscores will also be converted to a single dash. The final string will be lowercased.

dasherize "SomeClassName" == "-some-class-name"
dasherize "some\_class\_name" == "some-class-name"
dasherize "someClass name" == "some-class-name"
ellipsis : Int -> String -> String
humanize : String -> String

This is a non-shrinking space character

nonEmpty : String -> Maybe String
pluralize : String -> String -> Int -> String
present : String -> Bool
smartCaseContains : String -> String -> Bool
spacer : String

This is an empty char that has no width but a height

toTitleCase : String -> String
underscored : String -> String

I swiped this from elm-community/string-extra -- Chad Aug 26 2020

Return a string joined by underscores after separating it by its uppercase characters. Any sequence of spaces or dashes will also be converted to a single underscore. The final string will be lowercased.

underscored "SomeClassName" == "some\_class\_name"
underscored "some-class-name" == "some\_class\_name"
underscored "SomeClass name" == "some\_class\_name