camelToKebab

external fun camelToKebab(key: String): String

Convert a camelCase string to kebab-case: fooBar becomes foo-bar.

Colons are also converted to dashes.