function kebabCase(str) {
  return str
    .replace(/_/gu, '-')
    .replace(/\B([A-Z])/gu, '-$1')
    .toLowerCase()
}
Convert text to kebab-case
@param {string} str Text to be converted
@return {string}