lib/utils/casing.js
function kebabCase (str) {
  return str
    .replace(/([a-z])([A-Z])/g, match => match[0] + '-' + match[1])
    .replace(invalidChars, '-')
    .toLowerCase()
}
function kebabCase (str) {
  return str
    .replace(/([a-z])([A-Z])/g, match => match[0] + '-' + match[1])
    .replace(invalidChars, '-')
    .toLowerCase()
}
function kebabCase ( str ) { return str . replace ( / ([a-z])([A-Z]) / g , match => match [ 0 ] + '-' + match [ 1 ] ) . replace ( invalidChars , '-' ) . toLowerCase ( ) }
Convert text to kebab-case
@param {string} str Text to be converted
@return {string}
Convert text to kebab - case