Skip to content

fromKebabCase

fromKebabCase(string) → string · String

Convert from kebab-case to separate words.

  • string (required): kebab-case string
bash
echo '{"slug": "my-page-title"}' | utlx -e 'fromKebabCase($input.slug)'
# "my page title"
utlx
{
  title: titleCase(fromKebabCase($input.slug))
}

Released under AGPL-3.0.