kebabCase
Rewrites a name or phrase as kebab-case.
Details #
kebabCase(text) rewrites text as kebab-case. It splits the text into words on spaces and punctuation, on a change from lower to upper case, between letters and digits, and where an acronym ends, so parseURL2Fast is the words parse, URL, 2 and Fast.
The same operation is the kebabCase op of the Transform text step, so it also appears in Paste As and the clipboard actions.
Parameters #
Takes 1 argument.
{{ kebabCase(text) }}
Examples #
kebabCase("Some Name Here")→
some-name-hereGotchas #
Punctuation is dropped:
kebabCase("hello, world")giveshello-world.Apostrophes are dropped without splitting a word ("don't" stays one word).