to_dash_case

stringtools.to_dash_case(string)

Changes string to dash case.

Changes words to dash case:

>>> stringtools.to_dash_case('scale degrees 4 and 5')
'scale-degrees-4-and-5'

Changes snake case to dash case:

>>> stringtools.to_dash_case('scale_degrees_4_and_5')
'scale-degrees-4-and-5'

Changes dash case to dash case:

>>> stringtools.to_dash_case('scale-degrees-4-and-5')
'scale-degrees-4-and-5'

Changes upper camel case to dash case:

>>> stringtools.to_dash_case('ScaleDegrees4And5')
'scale-degrees-4-and-5'

Returns string.